#9F38CC#9F38CC

#9F38CC is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.223 H 313.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9F38CC
RGBrgb(159, 56, 204)
HSLhsl(282, 59%, 51%)
HSVhsv(282, 73%, 80%)
CMYKcmyk(22.1%, 72.5%, 0%, 20%)
CIE-LABlab(45.03, 64.05, -57.40)
CIE-LCHlch(45.03, 86.01, 318.14°)
OKLaboklab(55.45% 0.1528 -0.1621)
OKLCHoklch(55.45% 0.223 313.3)
XYZxyz(26.6094, 14.5597, 58.5236)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38CC #65CC38
analogous
#5538CC #9F38CC #CC38AF
triadic
#9F38CC #CC9F38 #38CC9F
tetradic
#9F38CC #CC5538 #65CC38 #38AFCC
square
#9F38CC #CC5538 #65CC38 #38AFCC
split-complementary
#9F38CC #AFCC38 #38CC55
monochromatic
#551C6E #7A299E #9F38CC #B769D8 #CE99E5

Accessibility & contrast

On white

5.37
#9F38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9F38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38CC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38CC#FFFFFF#000000##FFFFFF
##9F38CC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#2B6DC9
Tritanopia (blue-blind)
#9A597F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f38cc;
/* rgb */ color: rgb(159, 56, 204);
/* oklch */ color: oklch(55.5% 0.223 313.3);
Tailwind
colors: {
  custom: {
    50: '#c078dc',
    500: '#9f38cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f38cc;
$custom-light: #c078dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38cc",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 281.757,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55452,
    "c": 0.22271,
    "h": 313.3
  },
  "luminance": 0.14559
}

Semantic roles & 50–950 ramp

primary
#9F38CC
secondary
#A3D18F
accent
#E24575
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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