#5C125F#5C125F

#5C125F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.140 H 326.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#5C125F
RGBrgb(92, 18, 95)
HSLhsl(298, 68%, 22%)
HSVhsv(298, 81%, 37%)
CMYKcmyk(3.2%, 81.1%, 0%, 62.7%)
CIE-LABlab(22.07, 42.41, -27.94)
CIE-LCHlch(22.07, 50.79, 326.62°)
OKLaboklab(34.67% 0.1167 -0.0777)
OKLCHoklch(34.67% 0.14 326.3)
XYZxyz(6.6954, 3.5346, 11.1539)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C125F #155F12
analogous
#35125F #5C125F #5F123C
triadic
#5C125F #5F5C12 #125F5C
tetradic
#5C125F #5F3512 #155F12 #123C5F
square
#5C125F #5F3512 #155F12 #123C5F
split-complementary
#5C125F #3C5F12 #125F35
monochromatic
#19051A #2A082C #5C125F #8E1C92 #C025C6

Accessibility & contrast

On white

12.30
#5C125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5C125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C125F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C125F#FFFFFF#000000##FFFFFF
##5C125F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5F2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c125f;
/* rgb */ color: rgb(92, 18, 95);
/* oklch */ color: oklch(34.7% 0.140 326.3);
Tailwind
colors: {
  custom: {
    50: '#8d5a8d',
    500: '#5c125f',
    950: '#000000',
  },
}
SCSS
$custom: #5c125f;
$custom-light: #8d5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c125f",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 297.662,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34673,
    "c": 0.14021,
    "h": 326.3
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#5C125F
secondary
#399736
accent
#EB3D44
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C125F

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

Preview Lab → · Contrast checker → · Palette generator →

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