#5538AE#5538AE

#5538AE is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.178 H 288.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5538AE
RGBrgb(85, 56, 174)
HSLhsl(255, 51%, 45%)
HSVhsv(255, 68%, 68%)
CMYKcmyk(51.1%, 67.8%, 0%, 31.8%)
CIE-LABlab(33.59, 42.51, -58.76)
CIE-LCHlch(33.59, 72.52, 305.88°)
OKLaboklab(44.59% 0.0558 -0.1686)
OKLCHoklch(44.59% 0.178 288.3)
XYZxyz(12.7982, 7.8150, 40.8703)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5538AE #91AE38
analogous
#3856AE #5538AE #9038AE
triadic
#5538AE #AE5538 #38AE55
tetradic
#5538AE #AE3856 #91AE38 #38AE90
square
#5538AE #AE3856 #91AE38 #38AE90
split-complementary
#5538AE #AE9038 #56AE38
monochromatic
#281A51 #3E2980 #5538AE #7559CA #9C88D9

Accessibility & contrast

On white

8.19
#5538AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5538AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5538AE
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5538AE#FFFFFF#000000##FFFFFF
##5538AE1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#35566E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5538ae;
/* rgb */ color: rgb(85, 56, 174);
/* oklch */ color: oklch(44.6% 0.178 288.3);
Tailwind
colors: {
  custom: {
    50: '#8d71c7',
    500: '#5538ae',
    950: '#000000',
  },
}
SCSS
$custom: #5538ae;
$custom-light: #8d71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5538ae",
  "rgb": {
    "r": 85,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 254.746,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44594,
    "c": 0.17759,
    "h": 288.3
  },
  "luminance": 0.07816
}

Semantic roles & 50–950 ramp

primary
#5538AE
secondary
#B2C37F
accent
#DB4DB8
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5538AE

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

Preview Lab → · Contrast checker → · Palette generator →

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