#9538C8#9538C8

#9538C8 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.9% C 0.216 H 310.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9538C8
RGBrgb(149, 56, 200)
HSLhsl(279, 57%, 50%)
HSVhsv(279, 72%, 78%)
CMYKcmyk(25.5%, 72%, 0%, 21.6%)
CIE-LABlab(43.34, 61.26, -57.87)
CIE-LCHlch(43.34, 84.27, 316.63°)
OKLaboklab(53.88% 0.1405 -0.1638)
OKLCHoklch(53.88% 0.216 310.6)
XYZxyz(24.2319, 13.3886, 55.9401)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9538C8 #6BC838
analogous
#4D38C8 #9538C8 #C838B3
triadic
#9538C8 #C89538 #38C895
tetradic
#9538C8 #C84D38 #6BC838 #38B3C8
square
#9538C8 #C84D38 #6BC838 #38B3C8
split-complementary
#9538C8 #B3C838 #38C84D
monochromatic
#4E1D69 #722A99 #9538C8 #AF68D5 #C898E3

Accessibility & contrast

On white

5.71
#9538C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9538C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9538C8
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9538C8#FFFFFF#000000##FFFFFF
##9538C81.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#1E68C5
Tritanopia (blue-blind)
#8E587D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9538c8;
/* rgb */ color: rgb(149, 56, 200);
/* oklch */ color: oklch(53.9% 0.216 310.6);
Tailwind
colors: {
  custom: {
    50: '#b977d9',
    500: '#9538c8',
    950: '#000000',
  },
}
SCSS
$custom: #9538c8;
$custom-light: #b977d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9538c8",
  "rgb": {
    "r": 149,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 278.75,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5388,
    "c": 0.21581,
    "h": 310.6
  },
  "luminance": 0.13388
}

Semantic roles & 50–950 ramp

primary
#9538C8
secondary
#A5CE8E
accent
#E0487E
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9538C8

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

Preview Lab → · Contrast checker → · Palette generator →

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