#5B188F#5B188F

#5B188F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.179 H 304.3°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5B188F
RGBrgb(91, 24, 143)
HSLhsl(274, 71%, 33%)
HSVhsv(274, 83%, 56%)
CMYKcmyk(36.4%, 83.2%, 0%, 43.9%)
CIE-LABlab(26.33, 50.36, -51.75)
CIE-LCHlch(26.33, 72.21, 314.22°)
OKLaboklab(38.8% 0.1007 -0.1476)
OKLCHoklch(38.8% 0.179 304.3)
XYZxyz(9.5978, 4.8606, 26.4138)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B188F #4C8F18
analogous
#20188F #5B188F #8F1887
triadic
#5B188F #8F5B18 #188F5B
tetradic
#5B188F #8F2018 #4C8F18 #18878F
square
#5B188F #8F2018 #4C8F18 #18878F
split-complementary
#5B188F #878F18 #188F20
monochromatic
#180626 #3A0F5B #5B188F #7C21C3 #9B42DF

Accessibility & contrast

On white

10.65
#5B188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B188F
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B188F#FFFFFF#000000##FFFFFF
##5B188F1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b188f;
/* rgb */ color: rgb(91, 24, 143);
/* oklch */ color: oklch(38.8% 0.179 304.3);
Tailwind
colors: {
  custom: {
    50: '#8f5fb1',
    500: '#5b188f',
    950: '#000000',
  },
}
SCSS
$custom: #5b188f;
$custom-light: #8f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b188f",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 273.782,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38804,
    "c": 0.1787,
    "h": 304.3
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#5B188F
secondary
#7AC043
accent
#EE3A89
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B188F

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

Preview Lab → · Contrast checker → · Palette generator →

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