#9F38C8#9F38C8

#9F38C8 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.219 H 314.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9F38C8
RGBrgb(159, 56, 200)
HSLhsl(283, 57%, 50%)
HSVhsv(283, 72%, 78%)
CMYKcmyk(20.5%, 72%, 0%, 21.6%)
CIE-LABlab(44.76, 63.25, -55.51)
CIE-LCHlch(44.76, 84.15, 318.73°)
OKLaboklab(55.18% 0.1532 -0.1565)
OKLCHoklch(55.18% 0.219 314.4)
XYZxyz(26.1358, 14.3703, 56.0294)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38C8 #61C838
analogous
#5738C8 #9F38C8 #C838A9
triadic
#9F38C8 #C89F38 #38C89F
tetradic
#9F38C8 #C85738 #61C838 #38A9C8
square
#9F38C8 #C85738 #61C838 #38A9C8
split-complementary
#9F38C8 #A9C838 #38C857
monochromatic
#531D69 #792A99 #9F38C8 #B668D5 #CD98E3

Accessibility & contrast

On white

5.42
#9F38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#9F38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38C8
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38C8#FFFFFF#000000##FFFFFF
##9F38C81.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#306CC5
Tritanopia (blue-blind)
#9B577D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9f38c8;
/* rgb */ color: rgb(159, 56, 200);
/* oklch */ color: oklch(55.2% 0.219 314.4);
Tailwind
colors: {
  custom: {
    50: '#c078d9',
    500: '#9f38c8',
    950: '#000000',
  },
}
SCSS
$custom: #9f38c8;
$custom-light: #c078d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38c8",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 282.917,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55178,
    "c": 0.21906,
    "h": 314.4
  },
  "luminance": 0.14369
}

Semantic roles & 50–950 ramp

primary
#9F38C8
secondary
#A0CE8E
accent
#E04873
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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