#9F38BD#9F38BD

#9F38BD is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.4% C 0.209 H 317.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9F38BD
RGBrgb(159, 56, 189)
HSLhsl(286, 54%, 48%)
HSVhsv(286, 70%, 74%)
CMYKcmyk(15.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(44.05, 61.07, -50.25)
CIE-LCHlch(44.05, 79.08, 320.55°)
OKLaboklab(54.45% 0.1543 -0.1411)
OKLCHoklch(54.45% 0.209 317.6)
XYZxyz(24.8962, 13.8745, 49.5009)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38BD #56BD38
analogous
#5C38BD #9F38BD #BD3898
triadic
#9F38BD #BD9F38 #38BD9F
tetradic
#9F38BD #BD5C38 #56BD38 #3898BD
square
#9F38BD #BD5C38 #56BD38 #3898BD
split-complementary
#9F38BD #98BD38 #38BD5C
monochromatic
#501C5F #772A8E #9F38BD #B762D0 #CD91DE

Accessibility & contrast

On white

5.56
#9F38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9F38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38BD
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38BD#FFFFFF#000000##FFFFFF
##9F38BD1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#3C6BBA
Tritanopia (blue-blind)
#9E5277
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f38bd;
/* rgb */ color: rgb(159, 56, 189);
/* oklch */ color: oklch(54.4% 0.209 317.6);
Tailwind
colors: {
  custom: {
    50: '#bf78d1',
    500: '#9f38bd',
    950: '#000000',
  },
}
SCSS
$custom: #9f38bd;
$custom-light: #bf78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38bd",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 286.466,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.54449,
    "c": 0.2091,
    "h": 317.6
  },
  "luminance": 0.13873
}

Semantic roles & 50–950 ramp

primary
#9F38BD
secondary
#96C987
accent
#DE4A6B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9F38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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