#5D138C#5D138C

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

Color values

HEX#5D138C
RGBrgb(93, 19, 140)
HSLhsl(277, 76%, 31%)
HSVhsv(277, 86%, 55%)
CMYKcmyk(33.6%, 86.4%, 0%, 45.1%)
CIE-LABlab(25.82, 51.61, -50.70)
CIE-LCHlch(25.82, 72.35, 315.51°)
OKLaboklab(38.43% 0.1082 -0.1444)
OKLCHoklch(38.43% 0.18 306.8)
XYZxyz(9.4797, 4.6865, 25.2110)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D138C #428C13
analogous
#20138C #5D138C #8C137E
triadic
#5D138C #8C5D13 #138C5D
tetradic
#5D138C #8C2013 #428C13 #137E8C
square
#5D138C #8C2013 #428C13 #137E8C
split-complementary
#5D138C #7E8C13 #138C20
monochromatic
#150420 #390C56 #5D138C #811AC2 #A036E4

Accessibility & contrast

On white

10.84
#5D138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D138C
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D138C#FFFFFF#000000##FFFFFF
##5D138C1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d138c;
/* rgb */ color: rgb(93, 19, 140);
/* oklch */ color: oklch(38.4% 0.180 306.8);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5d138c',
    950: '#000000',
  },
}
SCSS
$custom: #5d138c;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d138c",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 276.694,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38431,
    "c": 0.18045,
    "h": 306.8
  },
  "luminance": 0.04686
}

Semantic roles & 50–950 ramp

primary
#5D138C
secondary
#6EC03B
accent
#F3357F
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D138C

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

Preview Lab → · Contrast checker → · Palette generator →

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