#5C128F#5C128F

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

Color values

HEX#5C128F
RGBrgb(92, 18, 143)
HSLhsl(276, 78%, 32%)
HSVhsv(276, 87%, 56%)
CMYKcmyk(35.7%, 87.4%, 0%, 43.9%)
CIE-LABlab(25.84, 52.42, -52.55)
CIE-LCHlch(25.84, 74.22, 314.93°)
OKLaboklab(38.49% 0.1063 -0.1499)
OKLCHoklch(38.49% 0.184 305.4)
XYZxyz(9.5867, 4.6912, 26.3817)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C128F #458F12
analogous
#1E128F #5C128F #8F1284
triadic
#5C128F #8F5C12 #128F5C
tetradic
#5C128F #8F1E12 #458F12 #12848F
square
#5C128F #8F1E12 #458F12 #12848F
split-complementary
#5C128F #848F12 #128F1E
monochromatic
#160422 #390B59 #5C128F #7F19C5 #9E36E6

Accessibility & contrast

On white

10.83
#5C128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C128F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C128F#FFFFFF#000000##FFFFFF
##5C128F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#523754
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c128f;
/* rgb */ color: rgb(92, 18, 143);
/* oklch */ color: oklch(38.5% 0.184 305.4);
Tailwind
colors: {
  custom: {
    50: '#905db1',
    500: '#5c128f',
    950: '#000000',
  },
}
SCSS
$custom: #5c128f;
$custom-light: #905db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c128f",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 275.52,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38491,
    "c": 0.18377,
    "h": 305.4
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#5C128F
secondary
#72C33A
accent
#F43482
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C128F

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

Preview Lab → · Contrast checker → · Palette generator →

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