#9D38D0#9D38D0

#9D38D0 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.5% C 0.226 H 311.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9D38D0
RGBrgb(157, 56, 208)
HSLhsl(280, 62%, 52%)
HSVhsv(280, 73%, 82%)
CMYKcmyk(24.5%, 73.1%, 0%, 18.4%)
CIE-LABlab(45.01, 64.48, -59.74)
CIE-LCHlch(45.01, 87.90, 317.19°)
OKLaboklab(55.47% 0.1497 -0.169)
OKLCHoklch(55.47% 0.226 311.5)
XYZxyz(26.7018, 14.5512, 61.0643)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38D0 #6BD038
analogous
#5138D0 #9D38D0 #D038B7
triadic
#9D38D0 #D09D38 #38D09D
tetradic
#9D38D0 #D05138 #6BD038 #38B7D0
square
#9D38D0 #D05138 #6BD038 #38B7D0
split-complementary
#9D38D0 #B7D038 #38D051
monochromatic
#551B73 #7A27A4 #9D38D0 #B56ADC #CE9BE7

Accessibility & contrast

On white

5.37
#9D38D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9D38D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38D0
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38D0#FFFFFF#000000##FFFFFF
##9D38D01.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D4
Deuteranopia (green-blind)
#206CCD
Tritanopia (blue-blind)
#975B81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9d38d0;
/* rgb */ color: rgb(157, 56, 208);
/* oklch */ color: oklch(55.5% 0.226 311.5);
Tailwind
colors: {
  custom: {
    50: '#bf78df',
    500: '#9d38d0',
    950: '#000000',
  },
}
SCSS
$custom: #9d38d0;
$custom-light: #bf78df;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38d0",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 279.868,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.55471,
    "c": 0.22574,
    "h": 311.5
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#9D38D0
secondary
#A7D391
accent
#E54379
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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