#9F238E#9F238E

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

Color values

HEX#9F238E
RGBrgb(159, 35, 142)
HSLhsl(308, 64%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 78%, 10.7%, 37.6%)
CIE-LABlab(38.77, 60.22, -30.55)
CIE-LCHlch(38.77, 67.52, 333.10°)
OKLaboklab(49.8% 0.1753 -0.0837)
OKLCHoklch(49.8% 0.194 334.5)
XYZxyz(19.7818, 10.5278, 26.5762)
Luminance0.1053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F238E #239F34
analogous
#72239F #9F238E #9F2350
triadic
#9F238E #8E9F23 #238E9F
tetradic
#9F238E #9F7223 #239F34 #23509F
square
#9F238E #9F7223 #239F34 #23509F
split-complementary
#9F238E #509F23 #239F72
monochromatic
#3B0D34 #6D1861 #9F238E #D12EBB #DC60CB

Accessibility & contrast

On white

6.76
#9F238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9F238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F238E
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F238E#FFFFFF#000000##FFFFFF
##9F238E1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#50628B
Tritanopia (blue-blind)
#A72F57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f238e;
/* rgb */ color: rgb(159, 35, 142);
/* oklch */ color: oklch(49.8% 0.194 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6daf',
    500: '#9f238e',
    950: '#000000',
  },
}
SCSS
$custom: #9f238e;
$custom-light: #bf6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f238e",
  "rgb": {
    "r": 159,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 308.226,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49799,
    "c": 0.19427,
    "h": 334.5
  },
  "luminance": 0.10526
}

Semantic roles & 50–950 ramp

primary
#9F238E
secondary
#5DC16A
accent
#E75841
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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