#5A148E#5A148E

#5A148E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.181 H 304.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5A148E
RGBrgb(90, 20, 142)
HSLhsl(274, 75%, 32%)
HSVhsv(274, 86%, 56%)
CMYKcmyk(36.6%, 85.9%, 0%, 44.3%)
CIE-LABlab(25.64, 51.29, -52.26)
CIE-LCHlch(25.64, 73.23, 314.47°)
OKLaboklab(38.27% 0.1024 -0.1491)
OKLCHoklch(38.27% 0.181 304.5)
XYZxyz(9.3480, 4.6270, 25.9866)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A148E #488E14
analogous
#1D148E #5A148E #8E1485
triadic
#5A148E #8E5A14 #148E5A
tetradic
#5A148E #8E1D14 #488E14 #14858E
square
#5A148E #8E1D14 #488E14 #14858E
split-complementary
#5A148E #858E14 #148E1D
monochromatic
#160523 #380C58 #5A148E #7C1CC4 #9B39E3

Accessibility & contrast

On white

10.91
#5A148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A148E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A148E#FFFFFF#000000##FFFFFF
##5A148E1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#503753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a148e;
/* rgb */ color: rgb(90, 20, 142);
/* oklch */ color: oklch(38.3% 0.181 304.5);
Tailwind
colors: {
  custom: {
    50: '#8f5db0',
    500: '#5a148e',
    950: '#000000',
  },
}
SCSS
$custom: #5a148e;
$custom-light: #8f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a148e",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 274.426,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38268,
    "c": 0.18088,
    "h": 304.5
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#5A148E
secondary
#75C23C
accent
#F23686
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A148E

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

Preview Lab → · Contrast checker → · Palette generator →

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