#5538BF#5538BF

#5538BF is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.198 H 285.5°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5538BF
RGBrgb(85, 56, 191)
HSLhsl(253, 55%, 48%)
HSVhsv(253, 71%, 75%)
CMYKcmyk(55.5%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.04, 47.53, -66.46)
CIE-LCHlch(35.04, 81.70, 305.57°)
OKLaboklab(46.08% 0.0528 -0.1912)
OKLCHoklch(46.08% 0.198 285.5)
XYZxyz(14.5616, 8.5204, 50.1574)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538BF #A2BF38
analogous
#385EBF #5538BF #9838BF
triadic
#5538BF #BF5538 #38BF55
tetradic
#5538BF #BF385E #A2BF38 #38BF98
square
#5538BF #BF385E #A2BF38 #38BF98
split-complementary
#5538BF #BF9838 #5EBF38
monochromatic
#2B1C60 #402A90 #5538BF #7B63D1 #A392DF

Accessibility & contrast

On white

7.77
#5538BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5538BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538BF
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538BF#FFFFFF#000000##FFFFFF
##5538BF1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#245C77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5538bf;
/* rgb */ color: rgb(85, 56, 191);
/* oklch */ color: oklch(46.1% 0.198 285.5);
Tailwind
colors: {
  custom: {
    50: '#9071d3',
    500: '#5538bf',
    950: '#000000',
  },
}
SCSS
$custom: #5538bf;
$custom-light: #9071d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5538bf",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 252.889,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46079,
    "c": 0.19835,
    "h": 285.5
  },
  "luminance": 0.08521
}

Semantic roles & 50–950 ramp

primary
#5538BF
secondary
#BCCA89
accent
#DE4ABE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5538BF

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

Preview Lab → · Contrast checker → · Palette generator →

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