#5B2E95#5B2E95

#5B2E95 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.160 H 299.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5B2E95
RGBrgb(91, 46, 149)
HSLhsl(266, 53%, 38%)
HSVhsv(266, 69%, 58%)
CMYKcmyk(38.9%, 69.1%, 0%, 41.6%)
CIE-LABlab(30.27, 42.08, -49.03)
CIE-LCHlch(30.27, 64.61, 310.64°)
OKLaboklab(41.74% 0.0786 -0.1398)
OKLCHoklch(41.74% 0.16 299.4)
XYZxyz(10.7148, 6.3479, 29.0887)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E95 #68952E
analogous
#2E3495 #5B2E95 #8F2E95
triadic
#5B2E95 #955B2E #2E955B
tetradic
#5B2E95 #952E34 #68952E #2E958F
square
#5B2E95 #952E34 #68952E #2E958F
split-complementary
#5B2E95 #958F2E #34952E
monochromatic
#221137 #3E2066 #5B2E95 #783DC3 #986CD2

Accessibility & contrast

On white

9.25
#5B2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5B2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E95
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E95#FFFFFF#000000##FFFFFF
##5B2E951.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#4E465E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2e95;
/* rgb */ color: rgb(91, 46, 149);
/* oklch */ color: oklch(41.7% 0.160 299.4);
Tailwind
colors: {
  custom: {
    50: '#8e6ab5',
    500: '#5b2e95',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e95;
$custom-light: #8e6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e95",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 266.214,
    "s": 52.821,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41739,
    "c": 0.16036,
    "h": 299.4
  },
  "luminance": 0.06348
}

Semantic roles & 50–950 ramp

primary
#5B2E95
secondary
#95B966
accent
#DC4C9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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