#5538CB#5538CB

#5538CB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.213 H 283.7°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5538CB
RGBrgb(85, 56, 203)
HSLhsl(252, 59%, 51%)
HSVhsv(252, 72%, 80%)
CMYKcmyk(58.1%, 72.4%, 0%, 20.4%)
CIE-LABlab(36.12, 51.06, -71.70)
CIE-LCHlch(36.12, 88.03, 305.45°)
OKLaboklab(47.17% 0.0504 -0.2065)
OKLCHoklch(47.17% 0.213 283.7)
XYZxyz(15.9367, 9.0704, 57.3993)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538CB #AECB38
analogous
#3864CB #5538CB #9F38CB
triadic
#5538CB #CB5538 #38CB55
tetradic
#5538CB #CB3864 #AECB38 #38CB9F
square
#5538CB #CB3864 #AECB38 #38CB9F
split-complementary
#5538CB #CB9F38 #64CB38
monochromatic
#2C1C6C #40299D #5538CB #7E69D8 #A899E4

Accessibility & contrast

On white

7.46
#5538CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5538CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538CB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538CB#FFFFFF#000000##FFFFFF
##5538CB1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#0050C8
Tritanopia (blue-blind)
#0E607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5538cb;
/* rgb */ color: rgb(85, 56, 203);
/* oklch */ color: oklch(47.2% 0.213 283.7);
Tailwind
colors: {
  custom: {
    50: '#9272dc',
    500: '#5538cb',
    950: '#000000',
  },
}
SCSS
$custom: #5538cb;
$custom-light: #9272dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5538cb",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 251.837,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47172,
    "c": 0.21261,
    "h": 283.7
  },
  "luminance": 0.09071
}

Semantic roles & 50–950 ramp

primary
#5538CB
secondary
#C3D08F
accent
#E246C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5538CB

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

Preview Lab → · Contrast checker → · Palette generator →

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