#5A138F#5A138F

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

Color values

HEX#5A138F
RGBrgb(90, 19, 143)
HSLhsl(274, 77%, 32%)
HSVhsv(274, 87%, 56%)
CMYKcmyk(37.1%, 86.7%, 0%, 43.9%)
CIE-LABlab(25.63, 51.83, -52.90)
CIE-LCHlch(25.63, 74.06, 314.41°)
OKLaboklab(38.29% 0.1027 -0.151)
OKLCHoklch(38.29% 0.183 304.2)
XYZxyz(9.4061, 4.6226, 26.3780)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A138F #488F13
analogous
#1C138F #5A138F #8F1386
triadic
#5A138F #8F5A13 #138F5A
tetradic
#5A138F #8F1C13 #488F13 #13868F
square
#5A138F #8F1C13 #488F13 #13868F
split-complementary
#5A138F #868F13 #138F1C
monochromatic
#160523 #380C59 #5A138F #7C1AC5 #9B38E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A138F#FFFFFF#000000##FFFFFF
##5A138F1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#4F3754
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a138f;
/* rgb */ color: rgb(90, 19, 143);
/* oklch */ color: oklch(38.3% 0.183 304.2);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5a138f',
    950: '#000000',
  },
}
SCSS
$custom: #5a138f;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a138f",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 274.355,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38287,
    "c": 0.1826,
    "h": 304.2
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#5A138F
secondary
#75C33B
accent
#F33586
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A138F

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

Preview Lab → · Contrast checker → · Palette generator →

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