#5A188B#5A188B

#5A188B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.175 H 305.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5A188B
RGBrgb(90, 24, 139)
HSLhsl(274, 71%, 32%)
HSVhsv(274, 83%, 55%)
CMYKcmyk(35.3%, 82.7%, 0%, 45.5%)
CIE-LABlab(25.84, 49.26, -50.08)
CIE-LCHlch(25.84, 70.25, 314.53°)
OKLaboklab(38.32% 0.1005 -0.1427)
OKLCHoklch(38.32% 0.175 305.1)
XYZxyz(9.2022, 4.6911, 24.8418)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A188B #498B18
analogous
#21188B #5A188B #8B1883
triadic
#5A188B #8B5A18 #188B5A
tetradic
#5A188B #8B2118 #498B18 #18838B
square
#5A188B #8B2118 #498B18 #18838B
split-complementary
#5A188B #838B18 #188B21
monochromatic
#160623 #380F57 #5A188B #7C21BF #9A3FDE

Accessibility & contrast

On white

10.83
#5A188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A188B
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A188B#FFFFFF#000000##FFFFFF
##5A188B1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#513752
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a188b;
/* rgb */ color: rgb(90, 24, 139);
/* oklch */ color: oklch(38.3% 0.175 305.1);
Tailwind
colors: {
  custom: {
    50: '#8e5eae',
    500: '#5a188b',
    950: '#000000',
  },
}
SCSS
$custom: #5a188b;
$custom-light: #8e5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a188b",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 274.435,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38319,
    "c": 0.17454,
    "h": 305.1
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#5A188B
secondary
#76BE40
accent
#ED3A87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A188B

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

Preview Lab → · Contrast checker → · Palette generator →

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