#9A38BB#9A38BB

#9A38BB is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.6% C 0.205 H 316.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#9A38BB
RGBrgb(154, 56, 187)
HSLhsl(285, 54%, 48%)
HSVhsv(285, 70%, 73%)
CMYKcmyk(17.6%, 70.1%, 0%, 26.7%)
CIE-LABlab(43.19, 59.60, -50.50)
CIE-LCHlch(43.19, 78.12, 319.73°)
OKLaboklab(53.65% 0.1483 -0.142)
OKLCHoklch(53.65% 0.205 316.3)
XYZxyz(23.7089, 13.2872, 48.3199)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A38BB #59BB38
analogous
#5838BB #9A38BB #BB389B
triadic
#9A38BB #BB9A38 #38BB9A
tetradic
#9A38BB #BB5838 #59BB38 #389BBB
square
#9A38BB #BB5838 #59BB38 #389BBB
split-complementary
#9A38BB #9BBB38 #38BB58
monochromatic
#4C1C5D #732A8C #9A38BB #B461D0 #CA90DE

Accessibility & contrast

On white

5.74
#9A38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9A38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A38BB
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A38BB#FFFFFF#000000##FFFFFF
##9A38BB1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#985276
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9a38bb;
/* rgb */ color: rgb(154, 56, 187);
/* oklch */ color: oklch(53.6% 0.205 316.3);
Tailwind
colors: {
  custom: {
    50: '#bc77d0',
    500: '#9a38bb',
    950: '#000000',
  },
}
SCSS
$custom: #9a38bb;
$custom-light: #bc77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a38bb",
  "rgb": {
    "r": 154,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 284.885,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.53646,
    "c": 0.20534,
    "h": 316.3
  },
  "luminance": 0.13286
}

Semantic roles & 50–950 ramp

primary
#9A38BB
secondary
#97C886
accent
#DD4B6F
background
#FBF7FC
surface
#F7EEF9
border
#D0C9D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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