#CD4FA2

A color in the Purple, Crimson, Magenta family

#cd4fa2 is a color in the Purple, Crimson, Magenta family: RGB(205, 79, 162), HSL(320°, 56%, 56%), CMYK(0%, 61%, 21%, 20%). Closest named color: mediumvioletred. Contrast is 4.01:1 on white and 5.24:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#cd4fa2
RGBrgb(205 79 162)
RGB (legacy)rgb(205, 79, 162)
RGB %rgb(80% 31% 64%)
HSLhsl(320 56% 56%)
HSV / HSBhsv(320, 61%, 80%)
HWBhwb(320 31% 20%)
CMYKcmyk(0%, 61%, 21%, 20%)
CIELAB (D50)lab(53.36 57.02 -18.93)
LCHlch(53.36 60.08 341.64)
OKLaboklab(0.6201 0.1755 -0.0524)
OKLCHoklch(0.6201 0.1831 343.38)
Decimal13455266

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 8
Closest web-safe color#cc6699
Hue320°
Saturation (HSL / HSV)56% / 61%
Lightness (HSL)56%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)49% / 44%
Relative luminance (WCAG)0.2118
Red / Green / Blue205 / 79 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.01:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.24:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 66.6 / -35 · As background with white / black text: Lc -72.1 / 37.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #cd4fa2;
  --color-brand-oklch: oklch(62.01% 0.1831 343.38);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(205 79 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#cd4fa2] text-[#cd4fa2] border-[#cd4fa2]">