#5538C4#5538C4

#5538C4 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.204 H 284.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5538C4
RGBrgb(85, 56, 196)
HSLhsl(252, 56%, 49%)
HSVhsv(252, 71%, 77%)
CMYKcmyk(56.6%, 71.4%, 0%, 23.1%)
CIE-LABlab(35.49, 49.00, -68.66)
CIE-LCHlch(35.49, 84.35, 305.51°)
OKLaboklab(46.53% 0.0519 -0.1976)
OKLCHoklch(46.53% 0.204 284.7)
XYZxyz(15.1213, 8.7443, 53.1049)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538C4 #A7C438
analogous
#3861C4 #5538C4 #9B38C4
triadic
#5538C4 #C45538 #38C455
tetradic
#5538C4 #C43861 #A7C438 #38C49B
square
#5538C4 #C43861 #A7C438 #38C49B
split-complementary
#5538C4 #C49B38 #61C438
monochromatic
#2C1D65 #402A94 #5538C4 #7D66D3 #A596E1

Accessibility & contrast

On white

7.64
#5538C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5538C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538C4
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538C4#FFFFFF#000000##FFFFFF
##5538C41.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#004FC1
Tritanopia (blue-blind)
#1D5E7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5538c4;
/* rgb */ color: rgb(85, 56, 196);
/* oklch */ color: oklch(46.5% 0.204 284.7);
Tailwind
colors: {
  custom: {
    50: '#9071d7',
    500: '#5538c4',
    950: '#000000',
  },
}
SCSS
$custom: #5538c4;
$custom-light: #9071d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5538c4",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 252.429,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4653,
    "c": 0.20433,
    "h": 284.7
  },
  "luminance": 0.08745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5538C4

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

Preview Lab → · Contrast checker → · Palette generator →

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