#5C138E#5C138E

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

Color values

HEX#5C138E
RGBrgb(92, 19, 142)
HSLhsl(276, 76%, 32%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(35.2%, 86.6%, 0%, 44.3%)
CIE-LABlab(25.84, 51.90, -51.92)
CIE-LCHlch(25.84, 73.41, 314.99°)
OKLaboklab(38.47% 0.106 -0.148)
OKLCHoklch(38.47% 0.182 305.6)
XYZxyz(9.5279, 4.6941, 25.9901)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C138E #458E13
analogous
#1F138E #5C138E #8E1383
triadic
#5C138E #8E5C13 #138E5C
tetradic
#5C138E #8E1F13 #458E13 #13838E
square
#5C138E #8E1F13 #458E13 #13838E
split-complementary
#5C138E #838E13 #138E1F
monochromatic
#160522 #390C58 #5C138E #7F1AC4 #9E37E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C138E#FFFFFF#000000##FFFFFF
##5C138E1.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)
#003B91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#533753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c138e;
/* rgb */ color: rgb(92, 19, 142);
/* oklch */ color: oklch(38.5% 0.182 305.6);
Tailwind
colors: {
  custom: {
    50: '#905db0',
    500: '#5c138e',
    950: '#000000',
  },
}
SCSS
$custom: #5c138e;
$custom-light: #905db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c138e",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 275.61,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3847,
    "c": 0.18209,
    "h": 305.6
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#5C138E
secondary
#72C23B
accent
#F33582
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C138E

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

Preview Lab → · Contrast checker → · Palette generator →

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