#9F238D#9F238D

#9F238D is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.194 H 334.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9F238D
RGBrgb(159, 35, 141)
HSLhsl(309, 64%, 38%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 78%, 11.3%, 37.6%)
CIE-LABlab(38.72, 60.07, -30.02)
CIE-LCHlch(38.72, 67.15, 333.44°)
OKLaboklab(49.75% 0.1753 -0.0821)
OKLCHoklch(49.75% 0.194 334.9)
XYZxyz(19.7071, 10.4979, 26.1825)
Luminance0.1050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F238D #239F35
analogous
#73239F #9F238D #9F234F
triadic
#9F238D #8D9F23 #238D9F
tetradic
#9F238D #9F7323 #239F35 #234F9F
square
#9F238D #9F7323 #239F35 #234F9F
split-complementary
#9F238D #4F9F23 #239F73
monochromatic
#3B0D34 #6D1861 #9F238D #D12EB9 #DC60CA

Accessibility & contrast

On white

6.78
#9F238D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F238D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F238D
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F238D#FFFFFF#000000##FFFFFF
##9F238D1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225090
Deuteranopia (green-blind)
#50628A
Tritanopia (blue-blind)
#A72E57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f238d;
/* rgb */ color: rgb(159, 35, 141);
/* oklch */ color: oklch(49.7% 0.194 334.9);
Tailwind
colors: {
  custom: {
    50: '#bf6dae',
    500: '#9f238d',
    950: '#000000',
  },
}
SCSS
$custom: #9f238d;
$custom-light: #bf6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f238d",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 308.71,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49745,
    "c": 0.19357,
    "h": 334.9
  },
  "luminance": 0.10496
}

Semantic roles & 50–950 ramp

primary
#9F238D
secondary
#5DC16B
accent
#E75941
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F238D

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

Preview Lab → · Contrast checker → · Palette generator →

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