#9A38CA#9A38CA

#9A38CA is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.219 H 312.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9A38CA
RGBrgb(154, 56, 202)
HSLhsl(280, 58%, 51%)
HSVhsv(280, 72%, 79%)
CMYKcmyk(23.8%, 72.3%, 0%, 20.8%)
CIE-LABlab(44.18, 62.66, -57.64)
CIE-LCHlch(44.18, 85.14, 317.39°)
OKLaboklab(54.66% 0.1467 -0.163)
OKLCHoklch(54.66% 0.219 312)
XYZxyz(25.3993, 13.9633, 57.2229)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38CA #68CA38
analogous
#5138CA #9A38CA #CA38B1
triadic
#9A38CA #CA9A38 #38CA9A
tetradic
#9A38CA #CA5138 #68CA38 #38B1CA
square
#9A38CA #CA5138 #68CA38 #38B1CA
split-complementary
#9A38CA #B1CA38 #38CA51
monochromatic
#511D6B #76299B #9A38CA #B368D7 #CB99E4

Accessibility & contrast

On white

5.54
#9A38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9A38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38CA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38CA#FFFFFF#000000##FFFFFF
##9A38CA1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#256AC7
Tritanopia (blue-blind)
#94587E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9a38ca;
/* rgb */ color: rgb(154, 56, 202);
/* oklch */ color: oklch(54.7% 0.219 312.0);
Tailwind
colors: {
  custom: {
    50: '#bc78db',
    500: '#9a38ca',
    950: '#000000',
  },
}
SCSS
$custom: #9a38ca;
$custom-light: #bc78db;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38ca",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 280.274,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.21924,
    "h": 312
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#9A38CA
secondary
#A4CF8E
accent
#E14779
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9A38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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