#9A38C8#9A38C8

#9A38C8 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.217 H 312.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9A38C8
RGBrgb(154, 56, 200)
HSLhsl(281, 57%, 50%)
HSVhsv(281, 72%, 78%)
CMYKcmyk(23%, 72%, 0%, 21.6%)
CIE-LABlab(44.04, 62.24, -56.70)
CIE-LCHlch(44.04, 84.20, 317.67°)
OKLaboklab(54.52% 0.147 -0.1602)
OKLCHoklch(54.52% 0.217 312.5)
XYZxyz(25.1640, 13.8692, 55.9838)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38C8 #66C838
analogous
#5238C8 #9A38C8 #C838AE
triadic
#9A38C8 #C89A38 #38C89A
tetradic
#9A38C8 #C85238 #66C838 #38AEC8
square
#9A38C8 #C85238 #66C838 #38AEC8
split-complementary
#9A38C8 #AEC838 #38C852
monochromatic
#501D69 #752A99 #9A38C8 #B268D5 #CB98E3

Accessibility & contrast

On white

5.56
#9A38C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#9A38C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38C8
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38C8#FFFFFF#000000##FFFFFF
##9A38C81.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#286AC5
Tritanopia (blue-blind)
#95587D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9a38c8;
/* rgb */ color: rgb(154, 56, 200);
/* oklch */ color: oklch(54.5% 0.217 312.5);
Tailwind
colors: {
  custom: {
    50: '#bc77d9',
    500: '#9a38c8',
    950: '#000000',
  },
}
SCSS
$custom: #9a38c8;
$custom-light: #bc77d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38c8",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 280.833,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54524,
    "c": 0.21738,
    "h": 312.5
  },
  "luminance": 0.13869
}

Semantic roles & 50–950 ramp

primary
#9A38C8
secondary
#A2CE8E
accent
#E04878
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9A38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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