#5538BA#5538BA

#5538BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.192 H 286.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5538BA
RGBrgb(85, 56, 186)
HSLhsl(253, 54%, 47%)
HSVhsv(253, 70%, 73%)
CMYKcmyk(54.3%, 69.9%, 0%, 27.1%)
CIE-LABlab(34.61, 46.05, -64.22)
CIE-LCHlch(34.61, 79.03, 305.64°)
OKLaboklab(45.63% 0.0538 -0.1846)
OKLCHoklch(45.63% 0.192 286.2)
XYZxyz(14.0208, 8.3041, 47.3089)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538BA #9DBA38
analogous
#385CBA #5538BA #9638BA
triadic
#5538BA #BA5538 #38BA55
tetradic
#5538BA #BA385C #9DBA38 #38BA96
square
#5538BA #BA385C #9DBA38 #38BA96
split-complementary
#5538BA #BA9638 #5CBA38
monochromatic
#2A1C5C #402A8B #5538BA #7960CF #A18FDD

Accessibility & contrast

On white

7.89
#5538BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5538BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538BA
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538BA#FFFFFF#000000##FFFFFF
##5538BA1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#2A5A75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5538ba;
/* rgb */ color: rgb(85, 56, 186);
/* oklch */ color: oklch(45.6% 0.192 286.2);
Tailwind
colors: {
  custom: {
    50: '#8f71d0',
    500: '#5538ba',
    950: '#000000',
  },
}
SCSS
$custom: #5538ba;
$custom-light: #8f71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5538ba",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 253.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45634,
    "c": 0.19231,
    "h": 286.2
  },
  "luminance": 0.08305
}

Semantic roles & 50–950 ramp

primary
#5538BA
secondary
#B9C886
accent
#DD4BBC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5538BA

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

Preview Lab → · Contrast checker → · Palette generator →

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