#5538CF#5538CF

#5538CF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.5% C 0.217 H 283.2°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5538CF
RGBrgb(85, 56, 207)
HSLhsl(252, 61%, 52%)
HSVhsv(252, 73%, 81%)
CMYKcmyk(58.9%, 72.9%, 0%, 18.8%)
CIE-LABlab(36.49, 52.23, -73.42)
CIE-LCHlch(36.49, 90.11, 305.43°)
OKLaboklab(47.54% 0.0495 -0.2116)
OKLCHoklch(47.54% 0.217 283.2)
XYZxyz(16.4195, 9.2635, 59.9422)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538CF #B2CF38
analogous
#3867CF #5538CF #A138CF
triadic
#5538CF #CF5538 #38CF55
tetradic
#5538CF #CF3867 #B2CF38 #38CFA1
square
#5538CF #CF3867 #B2CF38 #38CFA1
split-complementary
#5538CF #CFA138 #67CF38
monochromatic
#2C1B71 #3F27A3 #5538CF #7F69DB #A99BE7

Accessibility & contrast

On white

7.36
#5538CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5538CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538CF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538CF#FFFFFF#000000##FFFFFF
##5538CF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#006280
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5538cf;
/* rgb */ color: rgb(85, 56, 207);
/* oklch */ color: oklch(47.5% 0.217 283.2);
Tailwind
colors: {
  custom: {
    50: '#9272df',
    500: '#5538cf',
    950: '#000000',
  },
}
SCSS
$custom: #5538cf;
$custom-light: #9272df;
$custom-dark: #000000;
JSON
{
  "hex": "#5538cf",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 251.523,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47543,
    "c": 0.2173,
    "h": 283.2
  },
  "luminance": 0.09265
}

Semantic roles & 50–950 ramp

primary
#5538CF
secondary
#C6D390
accent
#E444C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5538CF

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

Preview Lab → · Contrast checker → · Palette generator →

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