#5B126F#5B126F

#5B126F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.154 H 317.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#5B126F
RGBrgb(91, 18, 111)
HSLhsl(287, 72%, 25%)
HSVhsv(287, 84%, 44%)
CMYKcmyk(18%, 83.8%, 0%, 56.5%)
CIE-LABlab(23.02, 45.33, -36.89)
CIE-LCHlch(23.02, 58.44, 320.86°)
OKLaboklab(35.67% 0.1136 -0.1039)
OKLCHoklch(35.67% 0.154 317.5)
XYZxyz(7.3995, 3.8048, 15.3805)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B126F #266F12
analogous
#2D126F #5B126F #6F1254
triadic
#5B126F #6F5B12 #126F5B
tetradic
#5B126F #6F2D12 #266F12 #12546F
square
#5B126F #6F2D12 #266F12 #12546F
split-complementary
#5B126F #546F12 #126F2D
monochromatic
#16041A #30093A #5B126F #861BA4 #B123D8

Accessibility & contrast

On white

11.93
#5B126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B126F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B126F#FFFFFF#000000##FFFFFF
##5B126F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#15396D
Tritanopia (blue-blind)
#5A2841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b126f;
/* rgb */ color: rgb(91, 18, 111);
/* oklch */ color: oklch(35.7% 0.154 317.5);
Tailwind
colors: {
  custom: {
    50: '#8d5a99',
    500: '#5b126f',
    950: '#000000',
  },
}
SCSS
$custom: #5b126f;
$custom-light: #8d5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b126f",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 287.097,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35666,
    "c": 0.15394,
    "h": 317.5
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#5B126F
secondary
#4FA637
accent
#EF3960
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B126F

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

Preview Lab → · Contrast checker → · Palette generator →

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