#5B2EAF#5B2EAF

#5B2EAF is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.190 H 292.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5B2EAF
RGBrgb(91, 46, 175)
HSLhsl(261, 58%, 43%)
HSVhsv(261, 74%, 69%)
CMYKcmyk(48%, 73.7%, 0%, 31.4%)
CIE-LABlab(32.42, 49.09, -61.25)
CIE-LCHlch(32.42, 78.50, 308.71°)
OKLaboklab(43.93% 0.0736 -0.1757)
OKLCHoklch(43.93% 0.19 292.7)
XYZxyz(13.0271, 7.2728, 41.2665)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EAF #82AF2E
analogous
#2E42AF #5B2EAF #9B2EAF
triadic
#5B2EAF #AF5B2E #2EAF5B
tetradic
#5B2EAF #AF2E42 #82AF2E #2EAF9B
square
#5B2EAF #AF2E42 #82AF2E #2EAF9B
split-complementary
#5B2EAF #AF9B2E #42AF2E
monochromatic
#29154E #42217F #5B2EAF #794BD0 #9D7BDC

Accessibility & contrast

On white

8.56
#5B2EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B2EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EAF
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EAF#FFFFFF#000000##FFFFFF
##5B2EAF1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#41506C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2eaf;
/* rgb */ color: rgb(91, 46, 175);
/* oklch */ color: oklch(43.9% 0.190 292.7);
Tailwind
colors: {
  custom: {
    50: '#916bc8',
    500: '#5b2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eaf;
$custom-light: #916bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eaf",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 260.93,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43933,
    "c": 0.19046,
    "h": 292.7
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#5B2EAF
secondary
#A9C574
accent
#E246AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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