#5538CA#5538CA

#5538CA is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.211 H 283.8°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5538CA
RGBrgb(85, 56, 202)
HSLhsl(252, 58%, 51%)
HSVhsv(252, 72%, 79%)
CMYKcmyk(57.9%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.03, 50.77, -71.27)
CIE-LCHlch(36.03, 87.50, 305.46°)
OKLaboklab(47.08% 0.0506 -0.2053)
OKLCHoklch(47.08% 0.211 283.8)
XYZxyz(15.8179, 9.0229, 56.7737)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538CA #ADCA38
analogous
#3864CA #5538CA #9E38CA
triadic
#5538CA #CA5538 #38CA55
tetradic
#5538CA #CA3864 #ADCA38 #38CA9E
square
#5538CA #CA3864 #ADCA38 #38CA9E
split-complementary
#5538CA #CA9E38 #64CA38
monochromatic
#2C1D6B #40299B #5538CA #7E68D7 #A899E4

Accessibility & contrast

On white

7.49
#5538CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5538CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538CA
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538CA#FFFFFF#000000##FFFFFF
##5538CA1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#11607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5538ca;
/* rgb */ color: rgb(85, 56, 202);
/* oklch */ color: oklch(47.1% 0.211 283.8);
Tailwind
colors: {
  custom: {
    50: '#9172db',
    500: '#5538ca',
    950: '#000000',
  },
}
SCSS
$custom: #5538ca;
$custom-light: #9172db;
$custom-dark: #000000;
JSON
{
  "hex": "#5538ca",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 251.918,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47079,
    "c": 0.21143,
    "h": 283.8
  },
  "luminance": 0.09024
}

Semantic roles & 50–950 ramp

primary
#5538CA
secondary
#C2CF8E
accent
#E147C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5538CA

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

Preview Lab → · Contrast checker → · Palette generator →

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