#CB2EA2

A color in the Purple, Crimson, Magenta family

#cb2ea2 is a color in the Purple, Crimson, Magenta family: RGB(203, 46, 162), HSL(316°, 63%, 49%), CMYK(0%, 77%, 20%, 20%). Closest named color: mediumvioletred. Contrast is 4.72:1 on white and 4.45:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#cb2ea2
RGBrgb(203 46 162)
RGB (legacy)rgb(203, 46, 162)
RGB %rgb(80% 18% 64%)
HSLhsl(316 63% 49%)
HSV / HSBhsv(316, 77%, 80%)
HWBhwb(316 18% 20%)
CMYKcmyk(0%, 77%, 20%, 20%)
CIELAB (D50)lab(48.8 67.78 -25.91)
LCHlch(48.8 72.57 339.08)
OKLaboklab(0.5862 0.2095 -0.072)
OKLCHoklch(0.5862 0.2215 341.05)
Decimal13315746

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 4.7
Closest web-safe color#cc3399
Hue316°
Saturation (HSL / HSV)63% / 77%
Lightness (HSL)49%
Brightness or Value (HSV)80%
Luminance (Rec.601 / Rec.709)42% / 34%
Relative luminance (WCAG)0.1726
Red / Green / Blue203 / 46 / 162

WCAG 2.2 Contrast Ratio

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

APCA Contrast Lc (reference) — As text on white / black: Lc 71.3 / -30.3 · As background with white / black text: Lc -76.8 / 32.8

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: #cb2ea2;
  --color-brand-oklch: oklch(58.62% 0.2215 341.05);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(203 46 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#cb2ea2] text-[#cb2ea2] border-[#cb2ea2]">