#9F38CB#9F38CB

#9F38CB is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.222 H 313.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9F38CB
RGBrgb(159, 56, 203)
HSLhsl(282, 59%, 51%)
HSVhsv(282, 72%, 80%)
CMYKcmyk(21.7%, 72.4%, 0%, 20.4%)
CIE-LABlab(44.96, 63.85, -56.93)
CIE-LCHlch(44.96, 85.54, 318.28°)
OKLaboklab(55.38% 0.1529 -0.1607)
OKLCHoklch(55.38% 0.222 313.6)
XYZxyz(26.4899, 14.5119, 57.8940)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38CB #64CB38
analogous
#5538CB #9F38CB #CB38AD
triadic
#9F38CB #CB9F38 #38CB9F
tetradic
#9F38CB #CB5538 #64CB38 #38ADCB
square
#9F38CB #CB5538 #64CB38 #38ADCB
split-complementary
#9F38CB #ADCB38 #38CB55
monochromatic
#541C6C #7A299D #9F38CB #B669D8 #CE99E4

Accessibility & contrast

On white

5.38
#9F38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9F38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38CB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38CB#FFFFFF#000000##FFFFFF
##9F38CB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#2C6DC8
Tritanopia (blue-blind)
#9B587F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9f38cb;
/* rgb */ color: rgb(159, 56, 203);
/* oklch */ color: oklch(55.4% 0.222 313.6);
Tailwind
colors: {
  custom: {
    50: '#c078dc',
    500: '#9f38cb',
    950: '#000000',
  },
}
SCSS
$custom: #9f38cb;
$custom-light: #c078dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38cb",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 282.041,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55383,
    "c": 0.2218,
    "h": 313.6
  },
  "luminance": 0.14511
}

Semantic roles & 50–950 ramp

primary
#9F38CB
secondary
#A2D08F
accent
#E24675
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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