#9F238B#9F238B

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

Color values

HEX#9F238B
RGBrgb(159, 35, 139)
HSLhsl(310, 64%, 38%)
HSVhsv(310, 78%, 62%)
CMYKcmyk(0%, 78%, 12.6%, 37.6%)
CIE-LABlab(38.62, 59.77, -28.96)
CIE-LCHlch(38.62, 66.41, 334.15°)
OKLaboklab(49.64% 0.1751 -0.0791)
OKLCHoklch(49.64% 0.192 335.7)
XYZxyz(19.5596, 10.4389, 25.4059)
Luminance0.1044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F238B #239F37
analogous
#75239F #9F238B #9F234D
triadic
#9F238B #8B9F23 #238B9F
tetradic
#9F238B #9F7523 #239F37 #234D9F
square
#9F238B #9F7523 #239F37 #234D9F
split-complementary
#9F238B #4D9F23 #239F75
monochromatic
#3B0D33 #6D185F #9F238B #D12EB7 #DC60C8

Accessibility & contrast

On white

6.80
#9F238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9F238B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F238B
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F238B#FFFFFF#000000##FFFFFF
##9F238B1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#A72D55
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f238b;
/* rgb */ color: rgb(159, 35, 139);
/* oklch */ color: oklch(49.6% 0.192 335.7);
Tailwind
colors: {
  custom: {
    50: '#bf6dad',
    500: '#9f238b',
    950: '#000000',
  },
}
SCSS
$custom: #9f238b;
$custom-light: #bf6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f238b",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 309.677,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49638,
    "c": 0.19216,
    "h": 335.7
  },
  "luminance": 0.10437
}

Semantic roles & 50–950 ramp

primary
#9F238B
secondary
#5DC16D
accent
#E75C41
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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