#5C138D#5C138D

#5C138D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.181 H 306.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5C138D
RGBrgb(92, 19, 141)
HSLhsl(276, 76%, 31%)
HSVhsv(276, 87%, 55%)
CMYKcmyk(34.8%, 86.5%, 0%, 44.7%)
CIE-LABlab(25.76, 51.68, -51.44)
CIE-LCHlch(25.76, 72.92, 315.13°)
OKLaboklab(38.38% 0.1064 -0.1466)
OKLCHoklch(38.38% 0.181 306)
XYZxyz(9.4531, 4.6642, 25.5964)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C138D #448D13
analogous
#1F138D #5C138D #8D1381
triadic
#5C138D #8D5C13 #138D5C
tetradic
#5C138D #8D1F13 #448D13 #13818D
square
#5C138D #8D1F13 #448D13 #13818D
split-complementary
#5C138D #818D13 #138D1F
monochromatic
#160421 #390C57 #5C138D #7F1AC3 #9E36E4

Accessibility & contrast

On white

10.87
#5C138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C138D
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C138D#FFFFFF#000000##FFFFFF
##5C138D1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#533653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c138d;
/* rgb */ color: rgb(92, 19, 141);
/* oklch */ color: oklch(38.4% 0.181 306.0);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5c138d',
    950: '#000000',
  },
}
SCSS
$custom: #5c138d;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c138d",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 275.902,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38381,
    "c": 0.18115,
    "h": 306
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#5C138D
secondary
#71C13B
accent
#F33581
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C138D

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

Preview Lab → · Contrast checker → · Palette generator →

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