#9538CC#9538CC

#9538CC is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.2% C 0.220 H 309.6°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9538CC
RGBrgb(149, 56, 204)
HSLhsl(278, 59%, 51%)
HSVhsv(278, 73%, 80%)
CMYKcmyk(27%, 72.5%, 0%, 20%)
CIE-LABlab(43.62, 62.11, -59.73)
CIE-LCHlch(43.62, 86.17, 316.12°)
OKLaboklab(54.17% 0.1399 -0.1693)
OKLCHoklch(54.17% 0.22 309.6)
XYZxyz(24.7055, 13.5780, 58.4344)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9538CC #6FCC38
analogous
#4B38CC #9538CC #CC38B9
triadic
#9538CC #CC9538 #38CC95
tetradic
#9538CC #CC4B38 #6FCC38 #38B9CC
square
#9538CC #CC4B38 #6FCC38 #38B9CC
split-complementary
#9538CC #B9CC38 #38CC4B
monochromatic
#4F1C6E #73299E #9538CC #AF69D8 #C999E5

Accessibility & contrast

On white

5.65
#9538CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9538CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9538CC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9538CC#FFFFFF#000000##FFFFFF
##9538CC1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#1468C9
Tritanopia (blue-blind)
#8D5A7F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9538cc;
/* rgb */ color: rgb(149, 56, 204);
/* oklch */ color: oklch(54.2% 0.220 309.6);
Tailwind
colors: {
  custom: {
    50: '#b977dc',
    500: '#9538cc',
    950: '#000000',
  },
}
SCSS
$custom: #9538cc;
$custom-light: #b977dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9538cc",
  "rgb": {
    "r": 149,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 277.703,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54166,
    "c": 0.21961,
    "h": 309.6
  },
  "luminance": 0.13578
}

Semantic roles & 50–950 ramp

primary
#9538CC
secondary
#A7D18F
accent
#E24580
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9538CC

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

Preview Lab → · Contrast checker → · Palette generator →

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