#5538C5#5538C5

#5538C5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.6% C 0.206 H 284.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5538C5
RGBrgb(85, 56, 197)
HSLhsl(252, 56%, 50%)
HSVhsv(252, 72%, 77%)
CMYKcmyk(56.9%, 71.6%, 0%, 22.7%)
CIE-LABlab(35.58, 49.30, -69.10)
CIE-LCHlch(35.58, 84.88, 305.50°)
OKLaboklab(46.62% 0.0516 -0.1989)
OKLCHoklch(46.62% 0.206 284.6)
XYZxyz(15.2355, 8.7899, 53.7063)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538C5 #A8C538
analogous
#3862C5 #5538C5 #9B38C5
triadic
#5538C5 #C55538 #38C555
tetradic
#5538C5 #C53862 #A8C538 #38C59B
square
#5538C5 #C53862 #A8C538 #38C59B
split-complementary
#5538C5 #C59B38 #62C538
monochromatic
#2C1D66 #402A95 #5538C5 #7D67D4 #A696E1

Accessibility & contrast

On white

7.61
#5538C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5538C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538C5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538C5#FFFFFF#000000##FFFFFF
##5538C51.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#1B5E7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5538c5;
/* rgb */ color: rgb(85, 56, 197);
/* oklch */ color: oklch(46.6% 0.206 284.6);
Tailwind
colors: {
  custom: {
    50: '#9171d8',
    500: '#5538c5',
    950: '#000000',
  },
}
SCSS
$custom: #5538c5;
$custom-light: #9171d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5538c5",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 252.34,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.20551,
    "h": 284.6
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#5538C5
secondary
#BFCD8C
accent
#DF49C0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5538C5

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

Preview Lab → · Contrast checker → · Palette generator →

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