#9A38CB#9A38CB

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

Color values

HEX#9A38CB
RGBrgb(154, 56, 203)
HSLhsl(280, 59%, 51%)
HSVhsv(280, 72%, 80%)
CMYKcmyk(24.1%, 72.4%, 0%, 20.4%)
CIE-LABlab(44.25, 62.87, -58.11)
CIE-LCHlch(44.25, 85.61, 317.25°)
OKLaboklab(54.73% 0.1465 -0.1643)
OKLCHoklch(54.73% 0.22 311.7)
XYZxyz(25.5181, 14.0108, 57.8485)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38CB #69CB38
analogous
#5038CB #9A38CB #CB38B2
triadic
#9A38CB #CB9A38 #38CB9A
tetradic
#9A38CB #CB5038 #69CB38 #38B2CB
square
#9A38CB #CB5038 #69CB38 #38B2CB
split-complementary
#9A38CB #B2CB38 #38CB50
monochromatic
#521C6C #76299D #9A38CB #B369D8 #CB99E4

Accessibility & contrast

On white

5.52
#9A38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9A38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38CB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38CB#FFFFFF#000000##FFFFFF
##9A38CB1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#236AC8
Tritanopia (blue-blind)
#94597E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9a38cb;
/* rgb */ color: rgb(154, 56, 203);
/* oklch */ color: oklch(54.7% 0.220 311.7);
Tailwind
colors: {
  custom: {
    50: '#bc78dc',
    500: '#9a38cb',
    950: '#000000',
  },
}
SCSS
$custom: #9a38cb;
$custom-light: #bc78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38cb",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 280,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54733,
    "c": 0.22018,
    "h": 311.7
  },
  "luminance": 0.1401
}

Semantic roles & 50–950 ramp

primary
#9A38CB
secondary
#A5D08F
accent
#E2467A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9A38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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