#5A1888#5A1888

#5A1888 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.172 H 306.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5A1888
RGBrgb(90, 24, 136)
HSLhsl(275, 70%, 31%)
HSVhsv(275, 82%, 53%)
CMYKcmyk(33.8%, 82.4%, 0%, 46.7%)
CIE-LABlab(25.58, 48.57, -48.63)
CIE-LCHlch(25.58, 68.73, 314.96°)
OKLaboklab(38.06% 0.1013 -0.1385)
OKLCHoklch(38.06% 0.172 306.2)
XYZxyz(8.9860, 4.6046, 23.7032)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1888 #468818
analogous
#221888 #5A1888 #88187E
triadic
#5A1888 #885A18 #18885A
tetradic
#5A1888 #882218 #468818 #187E88
square
#5A1888 #882218 #468818 #187E88
split-complementary
#5A1888 #7E8818 #188822
monochromatic
#150620 #380F54 #5A1888 #7C21BC #9B3EDD

Accessibility & contrast

On white

10.93
#5A1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A1888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1888
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1888#FFFFFF#000000##FFFFFF
##5A18881.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#523651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1888;
/* rgb */ color: rgb(90, 24, 136);
/* oklch */ color: oklch(38.1% 0.172 306.2);
Tailwind
colors: {
  custom: {
    50: '#8e5eac',
    500: '#5a1888',
    950: '#000000',
  },
}
SCSS
$custom: #5a1888;
$custom-light: #8e5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1888",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 275.357,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38058,
    "c": 0.17159,
    "h": 306.2
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#5A1888
secondary
#73BC40
accent
#ED3B84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1888

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

Preview Lab → · Contrast checker → · Palette generator →

#5A1888 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva