#5538CC#5538CC

#5538CC is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.214 H 283.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5538CC
RGBrgb(85, 56, 204)
HSLhsl(252, 59%, 51%)
HSVhsv(252, 73%, 80%)
CMYKcmyk(58.3%, 72.5%, 0%, 20%)
CIE-LABlab(36.21, 51.35, -72.13)
CIE-LCHlch(36.21, 88.55, 305.45°)
OKLaboklab(47.26% 0.0502 -0.2078)
OKLCHoklch(47.26% 0.214 283.6)
XYZxyz(16.0562, 9.1182, 58.0290)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538CC #AFCC38
analogous
#3865CC #5538CC #9F38CC
triadic
#5538CC #CC5538 #38CC55
tetradic
#5538CC #CC3865 #AFCC38 #38CC9F
square
#5538CC #CC3865 #AFCC38 #38CC9F
split-complementary
#5538CC #CC9F38 #65CC38
monochromatic
#2C1C6E #40299E #5538CC #7F69D8 #A899E5

Accessibility & contrast

On white

7.44
#5538CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5538CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538CC
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538CC#FFFFFF#000000##FFFFFF
##5538CC1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#0A617F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5538cc;
/* rgb */ color: rgb(85, 56, 204);
/* oklch */ color: oklch(47.3% 0.214 283.6);
Tailwind
colors: {
  custom: {
    50: '#9272dd',
    500: '#5538cc',
    950: '#000000',
  },
}
SCSS
$custom: #5538cc;
$custom-light: #9272dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5538cc",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 251.757,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47264,
    "c": 0.21378,
    "h": 283.6
  },
  "luminance": 0.09119
}

Semantic roles & 50–950 ramp

primary
#5538CC
secondary
#C4D18F
accent
#E245C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5538CC

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

Preview Lab → · Contrast checker → · Palette generator →

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