#9F38CD#9F38CD

#9F38CD is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.5% C 0.224 H 313.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9F38CD
RGBrgb(159, 56, 205)
HSLhsl(281, 60%, 51%)
HSVhsv(281, 73%, 80%)
CMYKcmyk(22.4%, 72.7%, 0%, 19.6%)
CIE-LABlab(45.09, 64.25, -57.87)
CIE-LCHlch(45.09, 86.47, 317.99°)
OKLaboklab(55.52% 0.1526 -0.1635)
OKLCHoklch(55.52% 0.224 313)
XYZxyz(26.7297, 14.6079, 59.1573)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F38CD #66CD38
analogous
#5438CD #9F38CD #CD38B0
triadic
#9F38CD #CD9F38 #38CD9F
tetradic
#9F38CD #CD5438 #66CD38 #38B0CD
square
#9F38CD #CD5438 #66CD38 #38B0CD
split-complementary
#9F38CD #B0CD38 #38CD54
monochromatic
#551C6F #7B28A0 #9F38CD #B769D9 #CE9AE6

Accessibility & contrast

On white

5.36
#9F38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9F38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F38CD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F38CD#FFFFFF#000000##FFFFFF
##9F38CD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#296DCA
Tritanopia (blue-blind)
#9A5980
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f38cd;
/* rgb */ color: rgb(159, 56, 205);
/* oklch */ color: oklch(55.5% 0.224 313.0);
Tailwind
colors: {
  custom: {
    50: '#c078dd',
    500: '#9f38cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f38cd;
$custom-light: #c078dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f38cd",
  "rgb": {
    "r": 159,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 281.477,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.55521,
    "c": 0.22362,
    "h": 313
  },
  "luminance": 0.14607
}

Semantic roles & 50–950 ramp

primary
#9F38CD
secondary
#A4D18F
accent
#E34576
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9F38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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