#5B2F9F#5B2F9F

#5B2F9F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.171 H 296.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5B2F9F
RGBrgb(91, 47, 159)
HSLhsl(264, 54%, 40%)
HSVhsv(264, 70%, 62%)
CMYKcmyk(42.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(31.25, 44.24, -53.53)
CIE-LCHlch(31.25, 69.45, 309.57°)
OKLaboklab(42.69% 0.076 -0.153)
OKLCHoklch(42.69% 0.171 296.4)
XYZxyz(11.5873, 6.7601, 33.4885)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2F9F #739F2F
analogous
#2F3B9F #5B2F9F #932F9F
triadic
#5B2F9F #9F5B2F #2F9F5B
tetradic
#5B2F9F #9F2F3B #739F2F #2F9F93
square
#5B2F9F #9F2F3B #739F2F #2F9F93
split-complementary
#5B2F9F #9F932F #3B9F2F
monochromatic
#251341 #402170 #5B2F9F #7744C8 #9A73D6

Accessibility & contrast

On white

8.93
#5B2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2F9F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2F9F#FFFFFF#000000##FFFFFF
##5B2F9F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#494B63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2f9f;
/* rgb */ color: rgb(91, 47, 159);
/* oklch */ color: oklch(42.7% 0.171 296.4);
Tailwind
colors: {
  custom: {
    50: '#8f6bbc',
    500: '#5b2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #5b2f9f;
$custom-light: #8f6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2f9f",
  "rgb": {
    "r": 91,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 263.571,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42688,
    "c": 0.17081,
    "h": 296.4
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#5B2F9F
secondary
#9EBD6D
accent
#DE4AA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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