#9D2ECB#9D2ECB

#9D2ECB is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.2% C 0.232 H 313.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9D2ECB
RGBrgb(157, 46, 203)
HSLhsl(282, 63%, 49%)
HSVhsv(282, 77%, 80%)
CMYKcmyk(22.7%, 77.3%, 0%, 20.4%)
CIE-LABlab(43.41, 67.07, -59.44)
CIE-LCHlch(43.41, 89.62, 318.45°)
OKLaboklab(54.23% 0.1593 -0.1681)
OKLCHoklch(54.23% 0.232 313.5)
XYZxyz(25.6592, 13.4347, 57.7298)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2ECB #5CCB2E
analogous
#4E2ECB #9D2ECB #CB2EAB
triadic
#9D2ECB #CB9D2E #2ECB9D
tetradic
#9D2ECB #CB4E2E #5CCB2E #2EABCB
square
#9D2ECB #CB4E2E #5CCB2E #2EABCB
split-complementary
#9D2ECB #ABCB2E #2ECB4E
monochromatic
#501767 #762399 #9D2ECB #B55CDA #CC8EE5

Accessibility & contrast

On white

5.70
#9D2ECB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9D2ECB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2ECB
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2ECB#FFFFFF#000000##FFFFFF
##9D2ECB1.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#1B69C8
Tritanopia (blue-blind)
#98537C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9d2ecb;
/* rgb */ color: rgb(157, 46, 203);
/* oklch */ color: oklch(54.2% 0.232 313.5);
Tailwind
colors: {
  custom: {
    50: '#bf73dc',
    500: '#9d2ecb',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ecb;
$custom-light: #bf73dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ecb",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 203
  },
  "hsl": {
    "h": 282.42,
    "s": 63.052,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5423,
    "c": 0.23155,
    "h": 313.5
  },
  "luminance": 0.13434
}

Semantic roles & 50–950 ramp

primary
#9D2ECB
secondary
#9BD085
accent
#E64272
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D2ECB

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9D2ECB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva