#5B128F#5B128F

#5B128F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.4% C 0.184 H 304.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5B128F
RGBrgb(91, 18, 143)
HSLhsl(275, 78%, 32%)
HSVhsv(275, 87%, 56%)
CMYKcmyk(36.4%, 87.4%, 0%, 43.9%)
CIE-LABlab(25.68, 52.27, -52.81)
CIE-LCHlch(25.68, 74.30, 314.71°)
OKLaboklab(38.35% 0.1048 -0.1507)
OKLCHoklch(38.35% 0.184 304.8)
XYZxyz(9.4875, 4.6400, 26.3771)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B128F #468F12
analogous
#1D128F #5B128F #8F1285
triadic
#5B128F #8F5B12 #128F5B
tetradic
#5B128F #8F1D12 #468F12 #12858F
square
#5B128F #8F1D12 #468F12 #12858F
split-complementary
#5B128F #858F12 #128F1D
monochromatic
#160422 #380B59 #5B128F #7E19C5 #9C36E6

Accessibility & contrast

On white

10.89
#5B128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B128F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B128F#FFFFFF#000000##FFFFFF
##5B128F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b128f;
/* rgb */ color: rgb(91, 18, 143);
/* oklch */ color: oklch(38.4% 0.184 304.8);
Tailwind
colors: {
  custom: {
    50: '#8f5cb1',
    500: '#5b128f',
    950: '#000000',
  },
}
SCSS
$custom: #5b128f;
$custom-light: #8f5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b128f",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 275.04,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38354,
    "c": 0.18355,
    "h": 304.8
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#5B128F
secondary
#73C33A
accent
#F43484
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B128F

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

Preview Lab → · Contrast checker → · Palette generator →

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