#9E238A#9E238A

#9E238A is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.191 H 335.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#9E238A
RGBrgb(158, 35, 138)
HSLhsl(310, 64%, 38%)
HSVhsv(310, 78%, 62%)
CMYKcmyk(0%, 77.8%, 12.7%, 38%)
CIE-LABlab(38.39, 59.39, -28.72)
CIE-LCHlch(38.39, 65.97, 334.20°)
OKLaboklab(49.42% 0.1741 -0.0784)
OKLCHoklch(49.42% 0.191 335.7)
XYZxyz(19.2893, 10.3079, 25.0136)
Luminance0.1031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E238A #239E37
analogous
#74239E #9E238A #9E234C
triadic
#9E238A #8A9E23 #238A9E
tetradic
#9E238A #9E7423 #239E37 #234C9E
square
#9E238A #9E7423 #239E37 #234C9E
split-complementary
#9E238A #4C9E23 #239E74
monochromatic
#3A0D32 #6C185E #9E238A #D02EB6 #DC60C8

Accessibility & contrast

On white

6.86
#9E238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9E238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E238A
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E238A#FFFFFF#000000##FFFFFF
##9E238A1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8D
Deuteranopia (green-blind)
#516187
Tritanopia (blue-blind)
#A62D55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e238a;
/* rgb */ color: rgb(158, 35, 138);
/* oklch */ color: oklch(49.4% 0.191 335.7);
Tailwind
colors: {
  custom: {
    50: '#be6cac',
    500: '#9e238a',
    950: '#000000',
  },
}
SCSS
$custom: #9e238a;
$custom-light: #be6cac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e238a",
  "rgb": {
    "r": 158,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 309.756,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49423,
    "c": 0.19091,
    "h": 335.7
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#9E238A
secondary
#5CC16D
accent
#E75C41
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E238A

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

Preview Lab → · Contrast checker → · Palette generator →

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