#5538BD#5538BD

#5538BD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.196 H 285.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5538BD
RGBrgb(85, 56, 189)
HSLhsl(253, 54%, 48%)
HSVhsv(253, 70%, 74%)
CMYKcmyk(55%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.87, 46.94, -65.57)
CIE-LCHlch(34.87, 80.63, 305.60°)
OKLaboklab(45.9% 0.0532 -0.1886)
OKLCHoklch(45.9% 0.196 285.8)
XYZxyz(14.3430, 8.4330, 49.0062)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538BD #A0BD38
analogous
#385DBD #5538BD #9838BD
triadic
#5538BD #BD5538 #38BD55
tetradic
#5538BD #BD385D #A0BD38 #38BD98
square
#5538BD #BD385D #A0BD38 #38BD98
split-complementary
#5538BD #BD9838 #5DBD38
monochromatic
#2B1C5F #402A8E #5538BD #7A62D0 #A291DE

Accessibility & contrast

On white

7.82
#5538BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5538BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538BD
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538BD#FFFFFF#000000##FFFFFF
##5538BD1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#275B76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5538bd;
/* rgb */ color: rgb(85, 56, 189);
/* oklch */ color: oklch(45.9% 0.196 285.8);
Tailwind
colors: {
  custom: {
    50: '#8f71d2',
    500: '#5538bd',
    950: '#000000',
  },
}
SCSS
$custom: #5538bd;
$custom-light: #8f71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5538bd",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 253.083,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.459,
    "c": 0.19594,
    "h": 285.8
  },
  "luminance": 0.08434
}

Semantic roles & 50–950 ramp

primary
#5538BD
secondary
#BBC987
accent
#DE4ABD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5538BD

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

Preview Lab → · Contrast checker → · Palette generator →

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