#5D128A#5D128A

#5D128A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.179 H 307.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5D128A
RGBrgb(93, 18, 138)
HSLhsl(278, 77%, 31%)
HSVhsv(278, 87%, 54%)
CMYKcmyk(32.6%, 87%, 0%, 45.9%)
CIE-LABlab(25.55, 51.46, -49.91)
CIE-LCHlch(25.55, 71.68, 315.88°)
OKLaboklab(38.19% 0.1095 -0.1421)
OKLCHoklch(38.19% 0.179 307.6)
XYZxyz(9.3170, 4.5949, 24.4359)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D128A #3F8A12
analogous
#21128A #5D128A #8A127B
triadic
#5D128A #8A5D12 #128A5D
tetradic
#5D128A #8A2112 #3F8A12 #127B8A
square
#5D128A #8A2112 #3F8A12 #127B8A
split-complementary
#5D128A #7B8A12 #128A21
monochromatic
#14041E #390B54 #5D128A #8119C0 #A132E4

Accessibility & contrast

On white

10.94
#5D128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D128A
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D128A#FFFFFF#000000##FFFFFF
##5D128A1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#553451
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d128a;
/* rgb */ color: rgb(93, 18, 138);
/* oklch */ color: oklch(38.2% 0.179 307.6);
Tailwind
colors: {
  custom: {
    50: '#905cad',
    500: '#5d128a',
    950: '#000000',
  },
}
SCSS
$custom: #5d128a;
$custom-light: #905cad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d128a",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 277.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.17936,
    "h": 307.6
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#5D128A
secondary
#6BBF39
accent
#F3347C
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D128A

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

Preview Lab → · Contrast checker → · Palette generator →

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