#5D128F#5D128F

#5D128F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.6% C 0.184 H 305.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5D128F
RGBrgb(93, 18, 143)
HSLhsl(276, 78%, 32%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(35%, 87.4%, 0%, 43.9%)
CIE-LABlab(25.99, 52.57, -52.30)
CIE-LCHlch(25.99, 74.15, 315.15°)
OKLaboklab(38.63% 0.1078 -0.1491)
OKLCHoklch(38.63% 0.184 305.9)
XYZxyz(9.6873, 4.7430, 26.3864)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D128F #448F12
analogous
#1F128F #5D128F #8F1283
triadic
#5D128F #8F5D12 #128F5D
tetradic
#5D128F #8F1F12 #448F12 #12838F
square
#5D128F #8F1F12 #448F12 #12838F
split-complementary
#5D128F #838F12 #128F1F
monochromatic
#160422 #3A0B59 #5D128F #8019C5 #9F36E6

Accessibility & contrast

On white

10.78
#5D128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D128F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D128F#FFFFFF#000000##FFFFFF
##5D128F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#543754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d128f;
/* rgb */ color: rgb(93, 18, 143);
/* oklch */ color: oklch(38.6% 0.184 305.9);
Tailwind
colors: {
  custom: {
    50: '#915db1',
    500: '#5d128f',
    950: '#000000',
  },
}
SCSS
$custom: #5d128f;
$custom-light: #915db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d128f",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 276,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.184,
    "h": 305.9
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#5D128F
secondary
#71C33A
accent
#F43481
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D128F

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

Preview Lab → · Contrast checker → · Palette generator →

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