#9F38BB#9F38BB

#9F38BB is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.3% C 0.207 H 318.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#9F38BB
RGBrgb(159, 56, 187)
HSLhsl(287, 54%, 48%)
HSVhsv(287, 70%, 73%)
CMYKcmyk(15%, 70.1%, 0%, 26.7%)
CIE-LABlab(43.93, 60.68, -49.28)
CIE-LCHlch(43.93, 78.17, 320.92°)
OKLaboklab(54.32% 0.1545 -0.1383)
OKLCHoklch(54.32% 0.207 318.2)
XYZxyz(24.6806, 13.7882, 48.3654)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38BB #54BB38
analogous
#5E38BB #9F38BB #BB3895
triadic
#9F38BB #BB9F38 #38BB9F
tetradic
#9F38BB #BB5E38 #54BB38 #3895BB
square
#9F38BB #BB5E38 #54BB38 #3895BB
split-complementary
#9F38BB #95BB38 #38BB5E
monochromatic
#4F1C5D #772A8C #9F38BB #B861D0 #CD90DE

Accessibility & contrast

On white

5.59
#9F38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#9F38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38BB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38BB#FFFFFF#000000##FFFFFF
##9F38BB1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#3E6BB8
Tritanopia (blue-blind)
#9E5176
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f38bb;
/* rgb */ color: rgb(159, 56, 187);
/* oklch */ color: oklch(54.3% 0.207 318.2);
Tailwind
colors: {
  custom: {
    50: '#bf78d0',
    500: '#9f38bb',
    950: '#000000',
  },
}
SCSS
$custom: #9f38bb;
$custom-light: #bf78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38bb",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 287.176,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5432,
    "c": 0.20729,
    "h": 318.2
  },
  "luminance": 0.13787
}

Semantic roles & 50–950 ramp

primary
#9F38BB
secondary
#94C886
accent
#DD4B6A
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9F38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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