#5C138C#5C138C

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

Color values

HEX#5C138C
RGBrgb(92, 19, 140)
HSLhsl(276, 76%, 31%)
HSVhsv(276, 86%, 55%)
CMYKcmyk(34.3%, 86.4%, 0%, 45.1%)
CIE-LABlab(25.67, 51.45, -50.96)
CIE-LCHlch(25.67, 72.42, 315.27°)
OKLaboklab(38.29% 0.1067 -0.1452)
OKLCHoklch(38.29% 0.18 306.3)
XYZxyz(9.3791, 4.6346, 25.2063)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C138C #438C13
analogous
#1F138C #5C138C #8C137F
triadic
#5C138C #8C5C13 #138C5C
tetradic
#5C138C #8C1F13 #438C13 #137F8C
square
#5C138C #8C1F13 #438C13 #137F8C
split-complementary
#5C138C #7F8C13 #138C1F
monochromatic
#150420 #390C56 #5C138C #7F1AC2 #9F36E4

Accessibility & contrast

On white

10.90
#5C138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C138C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C138C#FFFFFF#000000##FFFFFF
##5C138C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#533652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c138c;
/* rgb */ color: rgb(92, 19, 140);
/* oklch */ color: oklch(38.3% 0.180 306.3);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5c138c',
    950: '#000000',
  },
}
SCSS
$custom: #5c138c;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c138c",
  "rgb": {
    "r": 92,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 276.198,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38292,
    "c": 0.18021,
    "h": 306.3
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#5C138C
secondary
#70C03B
accent
#F33580
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C138C

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

Preview Lab → · Contrast checker → · Palette generator →

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