#9538CB#9538CB

#9538CB is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.1% C 0.219 H 309.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#9538CB
RGBrgb(149, 56, 203)
HSLhsl(278, 59%, 51%)
HSVhsv(278, 72%, 80%)
CMYKcmyk(26.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(43.55, 61.89, -59.27)
CIE-LCHlch(43.55, 85.69, 316.24°)
OKLaboklab(54.09% 0.1401 -0.1679)
OKLCHoklch(54.09% 0.219 309.8)
XYZxyz(24.5860, 13.5302, 57.8048)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9538CB #6ECB38
analogous
#4B38CB #9538CB #CB38B8
triadic
#9538CB #CB9538 #38CB95
tetradic
#9538CB #CB4B38 #6ECB38 #38B8CB
square
#9538CB #CB4B38 #6ECB38 #38B8CB
split-complementary
#9538CB #B8CB38 #38CB4B
monochromatic
#4F1C6C #72299D #9538CB #AF69D8 #C999E4

Accessibility & contrast

On white

5.67
#9538CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#9538CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9538CB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9538CB#FFFFFF#000000##FFFFFF
##9538CB1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#1668C8
Tritanopia (blue-blind)
#8D5A7E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9538cb;
/* rgb */ color: rgb(149, 56, 203);
/* oklch */ color: oklch(54.1% 0.219 309.8);
Tailwind
colors: {
  custom: {
    50: '#b977dc',
    500: '#9538cb',
    950: '#000000',
  },
}
SCSS
$custom: #9538cb;
$custom-light: #b977dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9538cb",
  "rgb": {
    "r": 149,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 277.959,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54094,
    "c": 0.21866,
    "h": 309.8
  },
  "luminance": 0.1353
}

Semantic roles & 50–950 ramp

primary
#9538CB
secondary
#A7D08F
accent
#E2467F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9538CB

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

Preview Lab → · Contrast checker → · Palette generator →

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