#9F38D2#9F38D2

#9F38D2 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.228 H 311.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9F38D2
RGBrgb(159, 56, 210)
HSLhsl(280, 63%, 52%)
HSVhsv(280, 73%, 82%)
CMYKcmyk(24.3%, 73.3%, 0%, 17.6%)
CIE-LABlab(45.43, 65.27, -60.20)
CIE-LCHlch(45.43, 88.79, 317.32°)
OKLaboklab(55.87% 0.1519 -0.1703)
OKLCHoklch(55.87% 0.228 311.7)
XYZxyz(27.3429, 14.8531, 62.3868)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38D2 #6BD238
analogous
#5238D2 #9F38D2 #D238B8
triadic
#9F38D2 #D29F38 #38D29F
tetradic
#9F38D2 #D25238 #6BD238 #38B8D2
square
#9F38D2 #D25238 #6BD238 #38B8D2
split-complementary
#9F38D2 #B8D238 #38D252
monochromatic
#571A75 #7C26A7 #9F38D2 #B76ADD #CF9CE9

Accessibility & contrast

On white

5.29
#9F38D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9F38D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38D2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38D2#FFFFFF#000000##FFFFFF
##9F38D21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#206DCF
Tritanopia (blue-blind)
#995B82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9f38d2;
/* rgb */ color: rgb(159, 56, 210);
/* oklch */ color: oklch(55.9% 0.228 311.7);
Tailwind
colors: {
  custom: {
    50: '#c078e1',
    500: '#9f38d2',
    950: '#000000',
  },
}
SCSS
$custom: #9f38d2;
$custom-light: #c078e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38d2",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 280.13,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55869,
    "c": 0.2282,
    "h": 311.7
  },
  "luminance": 0.14852
}

Semantic roles & 50–950 ramp

primary
#9F38D2
secondary
#A8D591
accent
#E64278
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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