#5538BB#5538BB

#5538BB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.7% C 0.194 H 286.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5538BB
RGBrgb(85, 56, 187)
HSLhsl(253, 54%, 48%)
HSVhsv(253, 70%, 73%)
CMYKcmyk(54.5%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.69, 46.35, -64.67)
CIE-LCHlch(34.69, 79.56, 305.63°)
OKLaboklab(45.72% 0.0536 -0.1859)
OKLCHoklch(45.72% 0.194 286.1)
XYZxyz(14.1274, 8.3467, 47.8707)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538BB #9EBB38
analogous
#385DBB #5538BB #9638BB
triadic
#5538BB #BB5538 #38BB55
tetradic
#5538BB #BB385D #9EBB38 #38BB96
square
#5538BB #BB385D #9EBB38 #38BB96
split-complementary
#5538BB #BB9638 #5DBB38
monochromatic
#2A1C5D #402A8C #5538BB #7961D0 #A190DE

Accessibility & contrast

On white

7.87
#5538BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5538BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538BB
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538BB#FFFFFF#000000##FFFFFF
##5538BB1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#295A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5538bb;
/* rgb */ color: rgb(85, 56, 187);
/* oklch */ color: oklch(45.7% 0.194 286.1);
Tailwind
colors: {
  custom: {
    50: '#8f71d1',
    500: '#5538bb',
    950: '#000000',
  },
}
SCSS
$custom: #5538bb;
$custom-light: #8f71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5538bb",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 253.282,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45723,
    "c": 0.19352,
    "h": 286.1
  },
  "luminance": 0.08347
}

Semantic roles & 50–950 ramp

primary
#5538BB
secondary
#BAC886
accent
#DD4BBD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5538BB

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

Preview Lab → · Contrast checker → · Palette generator →

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