#5538B2#5538B2

#5538B2 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.9% C 0.183 H 287.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5538B2
RGBrgb(85, 56, 178)
HSLhsl(254, 52%, 46%)
HSVhsv(254, 69%, 70%)
CMYKcmyk(52.2%, 68.5%, 0%, 30.2%)
CIE-LABlab(33.93, 43.69, -60.60)
CIE-LCHlch(33.93, 74.71, 305.79°)
OKLaboklab(44.94% 0.0552 -0.174)
OKLCHoklch(44.94% 0.183 287.6)
XYZxyz(13.1940, 7.9734, 42.9546)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538B2 #95B238
analogous
#3858B2 #5538B2 #9238B2
triadic
#5538B2 #B25538 #38B255
tetradic
#5538B2 #B23858 #95B238 #38B292
square
#5538B2 #B23858 #95B238 #38B292
split-complementary
#5538B2 #B29238 #58B238
monochromatic
#291B55 #3F2983 #5538B2 #765CCC #9D8ADA

Accessibility & contrast

On white

8.09
#5538B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5538B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538B2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538B2#FFFFFF#000000##FFFFFF
##5538B21.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#325770
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5538b2;
/* rgb */ color: rgb(85, 56, 178);
/* oklch */ color: oklch(44.9% 0.183 287.6);
Tailwind
colors: {
  custom: {
    50: '#8e71ca',
    500: '#5538b2',
    950: '#000000',
  },
}
SCSS
$custom: #5538b2;
$custom-light: #8e71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5538b2",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 254.262,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44937,
    "c": 0.18254,
    "h": 287.6
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#5538B2
secondary
#B5C581
accent
#DC4CBA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5538B2

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

Preview Lab → · Contrast checker → · Palette generator →

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