#9F38BA#9F38BA

#9F38BA is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.206 H 318.5°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#9F38BA
RGBrgb(159, 56, 186)
HSLhsl(288, 54%, 47%)
HSVhsv(288, 70%, 73%)
CMYKcmyk(14.5%, 69.9%, 0%, 27.1%)
CIE-LABlab(43.87, 60.49, -48.79)
CIE-LCHlch(43.87, 77.71, 321.11°)
OKLaboklab(54.26% 0.1545 -0.1368)
OKLCHoklch(54.26% 0.206 318.5)
XYZxyz(24.5740, 13.7456, 47.8036)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38BA #53BA38
analogous
#5E38BA #9F38BA #BA3894
triadic
#9F38BA #BA9F38 #38BA9F
tetradic
#9F38BA #BA5E38 #53BA38 #3894BA
square
#9F38BA #BA5E38 #53BA38 #3894BA
split-complementary
#9F38BA #94BA38 #38BA5E
monochromatic
#4F1C5C #772A8B #9F38BA #B860CF #CD8FDD

Accessibility & contrast

On white

5.60
#9F38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#9F38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38BA
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38BA#FFFFFF#000000##FFFFFF
##9F38BA1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#3F6BB7
Tritanopia (blue-blind)
#9F5175
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f38ba;
/* rgb */ color: rgb(159, 56, 186);
/* oklch */ color: oklch(54.3% 0.206 318.5);
Tailwind
colors: {
  custom: {
    50: '#bf77cf',
    500: '#9f38ba',
    950: '#000000',
  },
}
SCSS
$custom: #9f38ba;
$custom-light: #bf77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38ba",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 287.538,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.2064,
    "h": 318.5
  },
  "luminance": 0.13744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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