#5B2F97#5B2F97

#5B2F97 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.161 H 298.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5B2F97
RGBrgb(91, 47, 151)
HSLhsl(265, 53%, 39%)
HSVhsv(265, 69%, 59%)
CMYKcmyk(39.7%, 68.9%, 0%, 40.8%)
CIE-LABlab(30.62, 42.09, -49.69)
CIE-LCHlch(30.62, 65.12, 310.26°)
OKLaboklab(42.04% 0.0772 -0.1417)
OKLCHoklch(42.04% 0.161 298.6)
XYZxyz(10.9154, 6.4914, 29.9500)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F97 #6B972F
analogous
#2F3797 #5B2F97 #8F2F97
triadic
#5B2F97 #975B2F #2F975B
tetradic
#5B2F97 #972F37 #6B972F #2F978F
square
#5B2F97 #972F37 #6B972F #2F978F
split-complementary
#5B2F97 #978F2F #37972F
monochromatic
#23123A #3F2068 #5B2F97 #7740C3 #996ED2

Accessibility & contrast

On white

9.14
#5B2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F97
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F97#FFFFFF#000000##FFFFFF
##5B2F971.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#4D485F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2f97;
/* rgb */ color: rgb(91, 47, 151);
/* oklch */ color: oklch(42.0% 0.161 298.6);
Tailwind
colors: {
  custom: {
    50: '#8e6bb6',
    500: '#5b2f97',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f97;
$custom-light: #8e6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f97",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 265.385,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42036,
    "c": 0.16139,
    "h": 298.6
  },
  "luminance": 0.06492
}

Semantic roles & 50–950 ramp

primary
#5B2F97
secondary
#97B968
accent
#DC4C9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5B2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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