#9538AB#9538AB

#9538AB is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.9% C 0.188 H 319.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9538AB
RGBrgb(149, 56, 171)
HSLhsl(289, 51%, 45%)
HSVhsv(289, 67%, 67%)
CMYKcmyk(12.9%, 67.3%, 0%, 32.9%)
CIE-LABlab(41.47, 55.32, -43.86)
CIE-LCHlch(41.47, 70.60, 321.59°)
OKLaboklab(51.94% 0.1431 -0.1227)
OKLCHoklch(51.94% 0.188 319.4)
XYZxyz(21.1583, 12.1592, 39.7526)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9538AB #4EAB38
analogous
#5C38AB #9538AB #AB3888
triadic
#9538AB #AB9538 #38AB95
tetradic
#9538AB #AB5C38 #4EAB38 #3888AB
square
#9538AB #AB5C38 #4EAB38 #3888AB
split-complementary
#9538AB #88AB38 #38AB5C
monochromatic
#451A4F #6D297D #9538AB #B358C8 #C886D7

Accessibility & contrast

On white

6.12
#9538AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9538AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9538AB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9538AB#FFFFFF#000000##FFFFFF
##9538AB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAE
Deuteranopia (green-blind)
#4065A8
Tritanopia (blue-blind)
#954D6D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9538ab;
/* rgb */ color: rgb(149, 56, 171);
/* oklch */ color: oklch(51.9% 0.188 319.4);
Tailwind
colors: {
  custom: {
    50: '#b776c4',
    500: '#9538ab',
    950: '#000000',
  },
}
SCSS
$custom: #9538ab;
$custom-light: #b776c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9538ab",
  "rgb": {
    "r": 149,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 288.522,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51942,
    "c": 0.18849,
    "h": 319.4
  },
  "luminance": 0.12158
}

Semantic roles & 50–950 ramp

primary
#9538AB
secondary
#8AC17D
accent
#DA4E69
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9538AB

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

Preview Lab → · Contrast checker → · Palette generator →

#9538AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva