#5A138D#5A138D

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

Color values

HEX#5A138D
RGBrgb(90, 19, 141)
HSLhsl(275, 76%, 31%)
HSVhsv(275, 87%, 55%)
CMYKcmyk(36.2%, 86.5%, 0%, 44.7%)
CIE-LABlab(25.45, 51.37, -51.95)
CIE-LCHlch(25.45, 73.06, 314.68°)
OKLaboklab(38.11% 0.1034 -0.1482)
OKLCHoklch(38.11% 0.181 304.9)
XYZxyz(9.2559, 4.5625, 25.5872)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A138D #468D13
analogous
#1D138D #5A138D #8D1383
triadic
#5A138D #8D5A13 #138D5A
tetradic
#5A138D #8D1D13 #468D13 #13838D
square
#5A138D #8D1D13 #468D13 #13838D
split-complementary
#5A138D #838D13 #138D1D
monochromatic
#150421 #380C57 #5A138D #7C1AC3 #9B36E4

Accessibility & contrast

On white

10.98
#5A138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A138D
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A138D#FFFFFF#000000##FFFFFF
##5A138D1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#503653
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a138d;
/* rgb */ color: rgb(90, 19, 141);
/* oklch */ color: oklch(38.1% 0.181 304.9);
Tailwind
colors: {
  custom: {
    50: '#8e5daf',
    500: '#5a138d',
    950: '#000000',
  },
}
SCSS
$custom: #5a138d;
$custom-light: #8e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a138d",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 274.918,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.1807,
    "h": 304.9
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#5A138D
secondary
#73C13B
accent
#F33584
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A138D

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

Preview Lab → · Contrast checker → · Palette generator →

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