#9F238C#9F238C

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

Color values

HEX#9F238C
RGBrgb(159, 35, 140)
HSLhsl(309, 64%, 38%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 78%, 11.9%, 37.6%)
CIE-LABlab(38.67, 59.92, -29.49)
CIE-LCHlch(38.67, 66.78, 333.80°)
OKLaboklab(49.69% 0.1752 -0.0806)
OKLCHoklch(49.69% 0.193 335.3)
XYZxyz(19.6330, 10.4682, 25.7924)
Luminance0.1047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F238C #239F36
analogous
#74239F #9F238C #9F234E
triadic
#9F238C #8C9F23 #238C9F
tetradic
#9F238C #9F7423 #239F36 #234E9F
square
#9F238C #9F7423 #239F36 #234E9F
split-complementary
#9F238C #4E9F23 #239F74
monochromatic
#3B0D34 #6D1860 #9F238C #D12EB8 #DC60C9

Accessibility & contrast

On white

6.79
#9F238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F238C
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F238C#FFFFFF#000000##FFFFFF
##9F238C1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#516289
Tritanopia (blue-blind)
#A72E56
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f238c;
/* rgb */ color: rgb(159, 35, 140);
/* oklch */ color: oklch(49.7% 0.193 335.3);
Tailwind
colors: {
  custom: {
    50: '#bf6dae',
    500: '#9f238c',
    950: '#000000',
  },
}
SCSS
$custom: #9f238c;
$custom-light: #bf6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f238c",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 309.194,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.19286,
    "h": 335.3
  },
  "luminance": 0.10466
}

Semantic roles & 50–950 ramp

primary
#9F238C
secondary
#5DC16C
accent
#E75A41
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F238C

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

Preview Lab → · Contrast checker → · Palette generator →

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