#5B2F92#5B2F92

#5B2F92 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.155 H 300.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5B2F92
RGBrgb(91, 47, 146)
HSLhsl(267, 51%, 38%)
HSVhsv(267, 68%, 57%)
CMYKcmyk(37.7%, 67.8%, 0%, 42.7%)
CIE-LABlab(30.24, 40.76, -47.25)
CIE-LCHlch(30.24, 62.40, 310.78°)
OKLaboklab(41.64% 0.0779 -0.1345)
OKLCHoklch(41.64% 0.155 300.1)
XYZxyz(10.5179, 6.3324, 27.8567)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F92 #66922F
analogous
#2F3492 #5B2F92 #8C2F92
triadic
#5B2F92 #925B2F #2F925B
tetradic
#5B2F92 #922F34 #66922F #2F928C
square
#5B2F92 #922F34 #66922F #2F928C
split-complementary
#5B2F92 #928C2F #34922F
monochromatic
#211135 #3E2064 #5B2F92 #783EC0 #986CD0

Accessibility & contrast

On white

9.27
#5B2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2F92
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F92#FFFFFF#000000##FFFFFF
##5B2F921.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004795
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#4F465C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b2f92;
/* rgb */ color: rgb(91, 47, 146);
/* oklch */ color: oklch(41.6% 0.155 300.1);
Tailwind
colors: {
  custom: {
    50: '#8e6bb3',
    500: '#5b2f92',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f92;
$custom-light: #8e6bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f92",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 266.667,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4164,
    "c": 0.15545,
    "h": 300.1
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#5B2F92
secondary
#93B766
accent
#DB4D9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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