#5B2F90#5B2F90

#5B2F90 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.153 H 300.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5B2F90
RGBrgb(91, 47, 144)
HSLhsl(267, 51%, 37%)
HSVhsv(267, 67%, 56%)
CMYKcmyk(36.8%, 67.4%, 0%, 43.5%)
CIE-LABlab(30.09, 40.23, -46.26)
CIE-LCHlch(30.09, 61.31, 311.01°)
OKLaboklab(41.48% 0.0781 -0.1316)
OKLCHoklch(41.48% 0.153 300.7)
XYZxyz(10.3637, 6.2707, 27.0445)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F90 #64902F
analogous
#2F3490 #5B2F90 #8B2F90
triadic
#5B2F90 #905B2F #2F905B
tetradic
#5B2F90 #902F34 #64902F #2F908B
square
#5B2F90 #902F34 #64902F #2F908B
split-complementary
#5B2F90 #908B2F #34902F
monochromatic
#211134 #3E2062 #5B2F90 #783EBE #986BCF

Accessibility & contrast

On white

9.32
#5B2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5B2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F90
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F90#FFFFFF#000000##FFFFFF
##5B2F901.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004693
Deuteranopia (green-blind)
#00468E
Tritanopia (blue-blind)
#50455B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2f90;
/* rgb */ color: rgb(91, 47, 144);
/* oklch */ color: oklch(41.5% 0.153 300.7);
Tailwind
colors: {
  custom: {
    50: '#8e6ab1',
    500: '#5b2f90',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f90;
$custom-light: #8e6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f90",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 267.216,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41484,
    "c": 0.15307,
    "h": 300.7
  },
  "luminance": 0.06271
}

Semantic roles & 50–950 ramp

primary
#5B2F90
secondary
#91B665
accent
#DA4E9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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