#9D38D7#9D38D7

#9D38D7 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 56.0% C 0.232 H 309.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9D38D7
RGBrgb(157, 56, 215)
HSLhsl(278, 67%, 53%)
HSVhsv(278, 74%, 84%)
CMYKcmyk(27%, 74%, 0%, 15.7%)
CIE-LABlab(45.50, 65.94, -62.97)
CIE-LCHlch(45.50, 91.17, 316.32°)
OKLaboklab(55.97% 0.1485 -0.1785)
OKLCHoklch(55.97% 0.232 309.8)
XYZxyz(27.5821, 14.9033, 65.7004)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D38D7 #72D738
analogous
#4D38D7 #9D38D7 #D738C2
triadic
#9D38D7 #D79D38 #38D79D
tetradic
#9D38D7 #D74D38 #72D738 #38C2D7
square
#9D38D7 #D74D38 #72D738 #38C2D7
split-complementary
#9D38D7 #C2D738 #38D74D
monochromatic
#58197C #7C23AF #9D38D7 #B66BE1 #CF9EEB

Accessibility & contrast

On white

5.28
#9D38D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#9D38D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D38D7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D38D7#FFFFFF#000000##FFFFFF
##9D38D71.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DB
Deuteranopia (green-blind)
#0A6DD4
Tritanopia (blue-blind)
#955D85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9d38d7;
/* rgb */ color: rgb(157, 56, 215);
/* oklch */ color: oklch(56.0% 0.232 309.8);
Tailwind
colors: {
  custom: {
    50: '#bf78e4',
    500: '#9d38d7',
    950: '#000000',
  },
}
SCSS
$custom: #9d38d7;
$custom-light: #bf78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d38d7",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 278.113,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5597,
    "c": 0.23222,
    "h": 309.8
  },
  "luminance": 0.14903
}

Semantic roles & 50–950 ramp

primary
#9D38D7
secondary
#ACD893
accent
#E93E7D
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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