#9D2ECA#9D2ECA

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

Color values

HEX#9D2ECA
RGBrgb(157, 46, 202)
HSLhsl(283, 63%, 49%)
HSVhsv(283, 77%, 79%)
CMYKcmyk(22.3%, 77.2%, 0%, 20.8%)
CIE-LABlab(43.34, 66.87, -58.98)
CIE-LCHlch(43.34, 89.16, 318.59°)
OKLaboklab(54.16% 0.1594 -0.1667)
OKLCHoklch(54.16% 0.231 313.7)
XYZxyz(25.5404, 13.3872, 57.1043)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2ECA #5BCA2E
analogous
#4F2ECA #9D2ECA #CA2EA9
triadic
#9D2ECA #CA9D2E #2ECA9D
tetradic
#9D2ECA #CA4F2E #5BCA2E #2EA9CA
square
#9D2ECA #CA4F2E #5BCA2E #2EA9CA
split-complementary
#9D2ECA #A9CA2E #2ECA4F
monochromatic
#501766 #762398 #9D2ECA #B55BDA #CC8DE5

Accessibility & contrast

On white

5.71
#9D2ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9D2ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2ECA
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2ECA#FFFFFF#000000##FFFFFF
##9D2ECA1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#1E69C7
Tritanopia (blue-blind)
#98537C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d2eca;
/* rgb */ color: rgb(157, 46, 202);
/* oklch */ color: oklch(54.2% 0.231 313.7);
Tailwind
colors: {
  custom: {
    50: '#bf73db',
    500: '#9d2eca',
    950: '#000000',
  },
}
SCSS
$custom: #9d2eca;
$custom-light: #bf73db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2eca",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 282.692,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.54159,
    "c": 0.23067,
    "h": 313.7
  },
  "luminance": 0.13386
}

Semantic roles & 50–950 ramp

primary
#9D2ECA
secondary
#9ACF84
accent
#E64271
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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