#9E238E#9E238E

#9E238E is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.194 H 334.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9E238E
RGBrgb(158, 35, 142)
HSLhsl(308, 64%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 77.8%, 10.1%, 38%)
CIE-LABlab(38.60, 59.99, -30.84)
CIE-LCHlch(38.60, 67.46, 332.79°)
OKLaboklab(49.64% 0.1743 -0.0845)
OKLCHoklch(49.64% 0.194 334.1)
XYZxyz(19.5843, 10.4259, 26.5669)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E238E #239E33
analogous
#70239E #9E238E #9E2350
triadic
#9E238E #8E9E23 #238E9E
tetradic
#9E238E #9E7023 #239E33 #23509E
square
#9E238E #9E7023 #239E33 #23509E
split-complementary
#9E238E #509E23 #239E70
monochromatic
#3A0D34 #6C1861 #9E238E #D02EBB #DC60CC

Accessibility & contrast

On white

6.81
#9E238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9E238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E238E
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E238E#FFFFFF#000000##FFFFFF
##9E238E1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205091
Deuteranopia (green-blind)
#4F618B
Tritanopia (blue-blind)
#A62F57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e238e;
/* rgb */ color: rgb(158, 35, 142);
/* oklch */ color: oklch(49.6% 0.194 334.1);
Tailwind
colors: {
  custom: {
    50: '#be6daf',
    500: '#9e238e',
    950: '#000000',
  },
}
SCSS
$custom: #9e238e;
$custom-light: #be6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e238e",
  "rgb": {
    "r": 158,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 307.805,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49638,
    "c": 0.19373,
    "h": 334.1
  },
  "luminance": 0.10424
}

Semantic roles & 50–950 ramp

primary
#9E238E
secondary
#5CC169
accent
#E75741
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E238E

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

Preview Lab → · Contrast checker → · Palette generator →

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