#9F38BC#9F38BC

#9F38BC is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.208 H 317.9°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9F38BC
RGBrgb(159, 56, 188)
HSLhsl(287, 54%, 48%)
HSVhsv(287, 70%, 74%)
CMYKcmyk(15.4%, 70.2%, 0%, 26.3%)
CIE-LABlab(43.99, 60.87, -49.76)
CIE-LCHlch(43.99, 78.63, 320.74°)
OKLaboklab(54.38% 0.1544 -0.1397)
OKLCHoklch(54.38% 0.208 317.9)
XYZxyz(24.7881, 13.8312, 48.9312)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38BC #55BC38
analogous
#5D38BC #9F38BC #BC3897
triadic
#9F38BC #BC9F38 #38BC9F
tetradic
#9F38BC #BC5D38 #55BC38 #3897BC
square
#9F38BC #BC5D38 #55BC38 #3897BC
split-complementary
#9F38BC #97BC38 #38BC5D
monochromatic
#4F1C5E #772A8D #9F38BC #B861D0 #CD90DE

Accessibility & contrast

On white

5.58
#9F38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F38BC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38BC#FFFFFF#000000##FFFFFF
##9F38BC1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#3D6BB9
Tritanopia (blue-blind)
#9E5276
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f38bc;
/* rgb */ color: rgb(159, 56, 188);
/* oklch */ color: oklch(54.4% 0.208 317.9);
Tailwind
colors: {
  custom: {
    50: '#bf78d1',
    500: '#9f38bc',
    950: '#000000',
  },
}
SCSS
$custom: #9f38bc;
$custom-light: #bf78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38bc",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 286.818,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54385,
    "c": 0.20819,
    "h": 317.9
  },
  "luminance": 0.1383
}

Semantic roles & 50–950 ramp

primary
#9F38BC
secondary
#95C987
accent
#DD4A6B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9F38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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