#9538B2#9538B2

#9538B2 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.4% C 0.195 H 317.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9538B2
RGBrgb(149, 56, 178)
HSLhsl(286, 52%, 46%)
HSVhsv(286, 69%, 70%)
CMYKcmyk(16.3%, 68.5%, 0%, 30.2%)
CIE-LABlab(41.90, 56.71, -47.32)
CIE-LCHlch(41.90, 73.86, 320.16°)
OKLaboklab(52.39% 0.1428 -0.1328)
OKLCHoklch(52.39% 0.195 317.1)
XYZxyz(21.8433, 12.4331, 43.3601)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9538B2 #55B238
analogous
#5838B2 #9538B2 #B23892
triadic
#9538B2 #B29538 #38B295
tetradic
#9538B2 #B25838 #55B238 #3892B2
square
#9538B2 #B25838 #55B238 #3892B2
split-complementary
#9538B2 #92B238 #38B258
monochromatic
#471B55 #6E2983 #9538B2 #B15CCC #C78ADA

Accessibility & contrast

On white

6.02
#9538B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9538B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9538B2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9538B2#FFFFFF#000000##FFFFFF
##9538B21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#3A66AF
Tritanopia (blue-blind)
#944F71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9538b2;
/* rgb */ color: rgb(149, 56, 178);
/* oklch */ color: oklch(52.4% 0.195 317.1);
Tailwind
colors: {
  custom: {
    50: '#b876ca',
    500: '#9538b2',
    950: '#000000',
  },
}
SCSS
$custom: #9538b2;
$custom-light: #b876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9538b2",
  "rgb": {
    "r": 149,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 285.738,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52387,
    "c": 0.19502,
    "h": 317.1
  },
  "luminance": 0.12432
}

Semantic roles & 50–950 ramp

primary
#9538B2
secondary
#91C581
accent
#DC4C6E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9538B2

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

Preview Lab → · Contrast checker → · Palette generator →

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