#9D38D9#9D38D9

#9D38D9 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 56.1% C 0.234 H 309.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9D38D9
RGBrgb(157, 56, 217)
HSLhsl(278, 68%, 54%)
HSVhsv(278, 74%, 85%)
CMYKcmyk(27.6%, 74.2%, 0%, 14.9%)
CIE-LABlab(45.64, 66.36, -63.88)
CIE-LCHlch(45.64, 92.11, 316.09°)
OKLaboklab(56.12% 0.1482 -0.1812)
OKLCHoklch(56.12% 0.234 309.3)
XYZxyz(27.8407, 15.0067, 67.0621)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38D9 #74D938
analogous
#4C38D9 #9D38D9 #D938C4
triadic
#9D38D9 #D99D38 #38D99D
tetradic
#9D38D9 #D94C38 #74D938 #38C4D9
square
#9D38D9 #D94C38 #74D938 #38C4D9
split-complementary
#9D38D9 #C4D938 #38D94C
monochromatic
#58187E #7C22B2 #9D38D9 #B66BE3 #D09FED

Accessibility & contrast

On white

5.25
#9D38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#9D38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38D9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38D9#FFFFFF#000000##FFFFFF
##9D38D91.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#945E86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9d38d9;
/* rgb */ color: rgb(157, 56, 217);
/* oklch */ color: oklch(56.1% 0.234 309.3);
Tailwind
colors: {
  custom: {
    50: '#bf79e6',
    500: '#9d38d9',
    950: '#000000',
  },
}
SCSS
$custom: #9d38d9;
$custom-light: #bf79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38d9",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 277.64,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56115,
    "c": 0.23406,
    "h": 309.3
  },
  "luminance": 0.15006
}

Semantic roles & 50–950 ramp

primary
#9D38D9
secondary
#AED994
accent
#EB3D7E
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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