#9538CA#9538CA

#9538CA is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.0% C 0.218 H 310.1°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9538CA
RGBrgb(149, 56, 202)
HSLhsl(278, 58%, 51%)
HSVhsv(278, 72%, 79%)
CMYKcmyk(26.2%, 72.3%, 0%, 20.8%)
CIE-LABlab(43.48, 61.68, -58.80)
CIE-LCHlch(43.48, 85.22, 316.37°)
OKLaboklab(54.02% 0.1402 -0.1665)
OKLCHoklch(54.02% 0.218 310.1)
XYZxyz(24.4672, 13.4827, 57.1792)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9538CA #6DCA38
analogous
#4C38CA #9538CA #CA38B6
triadic
#9538CA #CA9538 #38CA95
tetradic
#9538CA #CA4C38 #6DCA38 #38B6CA
square
#9538CA #CA4C38 #6DCA38 #38B6CA
split-complementary
#9538CA #B6CA38 #38CA4C
monochromatic
#4F1D6B #72299B #9538CA #AF68D7 #C899E4

Accessibility & contrast

On white

5.68
#9538CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9538CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9538CA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9538CA#FFFFFF#000000##FFFFFF
##9538CA1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#1968C7
Tritanopia (blue-blind)
#8E597E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9538ca;
/* rgb */ color: rgb(149, 56, 202);
/* oklch */ color: oklch(54.0% 0.218 310.1);
Tailwind
colors: {
  custom: {
    50: '#b977db',
    500: '#9538ca',
    950: '#000000',
  },
}
SCSS
$custom: #9538ca;
$custom-light: #b977db;
$custom-dark: #000000;
JSON
{
  "hex": "#9538ca",
  "rgb": {
    "r": 149,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 278.219,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54022,
    "c": 0.21771,
    "h": 310.1
  },
  "luminance": 0.13482
}

Semantic roles & 50–950 ramp

primary
#9538CA
secondary
#A6CF8E
accent
#E1477F
background
#FBF7FD
surface
#F7EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #9538CA

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

Preview Lab → · Contrast checker → · Palette generator →

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