#5B198F#5B198F

#5B198F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.178 H 304.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5B198F
RGBrgb(91, 25, 143)
HSLhsl(274, 70%, 33%)
HSVhsv(274, 83%, 56%)
CMYKcmyk(36.4%, 82.5%, 0%, 43.9%)
CIE-LABlab(26.46, 50.01, -51.55)
CIE-LCHlch(26.46, 71.82, 314.13°)
OKLaboklab(38.89% 0.1 -0.147)
OKLCHoklch(38.89% 0.178 304.2)
XYZxyz(9.6188, 4.9026, 26.4208)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B198F #4D8F19
analogous
#20198F #5B198F #8F1988
triadic
#5B198F #8F5B19 #198F5B
tetradic
#5B198F #8F2019 #4D8F19 #19888F
square
#5B198F #8F2019 #4D8F19 #19888F
split-complementary
#5B198F #888F19 #198F20
monochromatic
#190727 #3A105B #5B198F #7C22C3 #9A44DE

Accessibility & contrast

On white

10.60
#5B198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B198F
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B198F#FFFFFF#000000##FFFFFF
##5B198F1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b198f;
/* rgb */ color: rgb(91, 25, 143);
/* oklch */ color: oklch(38.9% 0.178 304.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fb1',
    500: '#5b198f',
    950: '#000000',
  },
}
SCSS
$custom: #5b198f;
$custom-light: #8f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b198f",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 273.559,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.17779,
    "h": 304.2
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#5B198F
secondary
#7BBF44
accent
#ED3B89
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B198F

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

Preview Lab → · Contrast checker → · Palette generator →

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