#9F38C4#9F38C4

#9F38C4 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.215 H 315.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9F38C4
RGBrgb(159, 56, 196)
HSLhsl(284, 56%, 49%)
HSVhsv(284, 71%, 77%)
CMYKcmyk(18.9%, 71.4%, 0%, 23.1%)
CIE-LABlab(44.50, 62.45, -53.61)
CIE-LCHlch(44.50, 82.30, 319.35°)
OKLaboklab(54.91% 0.1537 -0.151)
OKLCHoklch(54.91% 0.215 315.5)
XYZxyz(25.6745, 14.1858, 53.5995)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38C4 #5DC438
analogous
#5938C4 #9F38C4 #C438A3
triadic
#9F38C4 #C49F38 #38C49F
tetradic
#9F38C4 #C45938 #5DC438 #38A3C4
square
#9F38C4 #C45938 #5DC438 #38A3C4
split-complementary
#9F38C4 #A3C438 #38C459
monochromatic
#521D65 #782A94 #9F38C4 #B666D3 #CD96E1

Accessibility & contrast

On white

5.47
#9F38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9F38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38C4
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38C4#FFFFFF#000000##FFFFFF
##9F38C41.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#356CC1
Tritanopia (blue-blind)
#9C557B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9f38c4;
/* rgb */ color: rgb(159, 56, 196);
/* oklch */ color: oklch(54.9% 0.215 315.5);
Tailwind
colors: {
  custom: {
    50: '#bf78d7',
    500: '#9f38c4',
    950: '#000000',
  },
}
SCSS
$custom: #9f38c4;
$custom-light: #bf78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38c4",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 284.143,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.5491,
    "c": 0.21542,
    "h": 315.5
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#9F38C4
secondary
#9DCC8C
accent
#DF4971
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9F38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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