#9A38DD#9A38DD

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

Color values

HEX#9A38DD
RGBrgb(154, 56, 221)
HSLhsl(276, 71%, 54%)
HSVhsv(276, 75%, 87%)
CMYKcmyk(30.3%, 74.7%, 0%, 13.3%)
CIE-LABlab(45.52, 66.67, -66.38)
CIE-LCHlch(45.52, 94.08, 315.12°)
OKLaboklab(56.04% 0.1435 -0.1886)
OKLCHoklch(56.04% 0.237 307.3)
XYZxyz(27.7890, 14.9192, 69.8083)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38DD #7BDD38
analogous
#4838DD #9A38DD #DD38CE
triadic
#9A38DD #DD9A38 #38DD9A
tetradic
#9A38DD #DD4838 #7BDD38 #38CEDD
square
#9A38DD #DD4838 #7BDD38 #38CEDD
split-complementary
#9A38DD #CEDD38 #38DD48
monochromatic
#581784 #7A1FB8 #9A38DD #B56CE6 #CFA1EF

Accessibility & contrast

On white

5.27
#9A38DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9A38DD
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38DD#FFFFFF#000000##FFFFFF
##9A38DD1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E2
Deuteranopia (green-blind)
#006CDA
Tritanopia (blue-blind)
#8F6089
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a38dd;
/* rgb */ color: rgb(154, 56, 221);
/* oklch */ color: oklch(56.0% 0.237 307.3);
Tailwind
colors: {
  custom: {
    50: '#bd78e9',
    500: '#9a38dd',
    950: '#000000',
  },
}
SCSS
$custom: #9a38dd;
$custom-light: #bd78e9;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38dd",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 275.636,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56036,
    "c": 0.23701,
    "h": 307.3
  },
  "luminance": 0.14919
}

Semantic roles & 50–950 ramp

primary
#9A38DD
secondary
#B2DB95
accent
#EE3A83
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A38DD

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

Preview Lab → · Contrast checker → · Palette generator →

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