#9A38D3#9A38D3

#9A38D3 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.3% C 0.228 H 309.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9A38D3
RGBrgb(154, 56, 211)
HSLhsl(278, 64%, 52%)
HSVhsv(278, 73%, 83%)
CMYKcmyk(27%, 73.5%, 0%, 17.3%)
CIE-LABlab(44.80, 64.54, -61.82)
CIE-LCHlch(44.80, 89.37, 316.23°)
OKLaboklab(55.3% 0.1453 -0.1752)
OKLCHoklch(55.3% 0.228 309.7)
XYZxyz(26.4961, 14.4021, 62.9995)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38D3 #71D338
analogous
#4C38D3 #9A38D3 #D338BF
triadic
#9A38D3 #D39A38 #38D39A
tetradic
#9A38D3 #D34C38 #71D338 #38BFD3
square
#9A38D3 #D34C38 #71D338 #38BFD3
split-complementary
#9A38D3 #BFD338 #38D34C
monochromatic
#541A76 #7825A9 #9A38D3 #B36ADE #CD9CE9

Accessibility & contrast

On white

5.41
#9A38D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9A38D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38D3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38D3#FFFFFF#000000##FFFFFF
##9A38D31.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0E6BD0
Tritanopia (blue-blind)
#925C83
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a38d3;
/* rgb */ color: rgb(154, 56, 211);
/* oklch */ color: oklch(55.3% 0.228 309.7);
Tailwind
colors: {
  custom: {
    50: '#bd78e1',
    500: '#9a38d3',
    950: '#000000',
  },
}
SCSS
$custom: #9a38d3;
$custom-light: #bd78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38d3",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 277.935,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55302,
    "c": 0.22764,
    "h": 309.7
  },
  "luminance": 0.14402
}

Semantic roles & 50–950 ramp

primary
#9A38D3
secondary
#AAD592
accent
#E7417E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9A38D3

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

Preview Lab → · Contrast checker → · Palette generator →

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