#9D38D2#9D38D2

#9D38D2 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.6% C 0.228 H 311.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9D38D2
RGBrgb(157, 56, 210)
HSLhsl(279, 63%, 52%)
HSVhsv(279, 73%, 82%)
CMYKcmyk(25.2%, 73.3%, 0%, 17.6%)
CIE-LABlab(45.15, 64.90, -60.66)
CIE-LCHlch(45.15, 88.83, 316.93°)
OKLaboklab(55.61% 0.1493 -0.1717)
OKLCHoklch(55.61% 0.228 311)
XYZxyz(26.9494, 14.6502, 62.3684)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38D2 #6DD238
analogous
#5038D2 #9D38D2 #D238BA
triadic
#9D38D2 #D29D38 #38D29D
tetradic
#9D38D2 #D25038 #6DD238 #38BAD2
square
#9D38D2 #D25038 #6DD238 #38BAD2
split-complementary
#9D38D2 #BAD238 #38D250
monochromatic
#561A75 #7B26A7 #9D38D2 #B66ADD #CE9CE9

Accessibility & contrast

On white

5.34
#9D38D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9D38D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38D2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38D2#FFFFFF#000000##FFFFFF
##9D38D21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#1B6DCF
Tritanopia (blue-blind)
#965B82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9d38d2;
/* rgb */ color: rgb(157, 56, 210);
/* oklch */ color: oklch(55.6% 0.228 311.0);
Tailwind
colors: {
  custom: {
    50: '#bf78e1',
    500: '#9d38d2',
    950: '#000000',
  },
}
SCSS
$custom: #9d38d2;
$custom-light: #bf78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38d2",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 279.351,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55612,
    "c": 0.22759,
    "h": 311
  },
  "luminance": 0.1465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D38D2

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

Preview Lab → · Contrast checker → · Palette generator →

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