#5F2BAB#5F2BAB

#5F2BAB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.190 H 296.0°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5F2BAB
RGBrgb(95, 43, 171)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(44.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(32.03, 50.12, -59.47)
CIE-LCHlch(32.03, 77.77, 310.12°)
OKLaboklab(43.66% 0.0832 -0.1703)
OKLCHoklch(43.66% 0.19 296)
XYZxyz(12.9319, 7.1006, 39.2094)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BAB #77AB2B
analogous
#2B37AB #5F2BAB #9F2BAB
triadic
#5F2BAB #AB5F2B #2BAB5F
tetradic
#5F2BAB #AB2B37 #77AB2B #2BAB9F
square
#5F2BAB #AB2B37 #77AB2B #2BAB9F
split-complementary
#5F2BAB #AB9F2B #37AB2B
monochromatic
#291249 #441F7A #5F2BAB #7C43D0 #9E74DC

Accessibility & contrast

On white

8.68
#5F2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BAB
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BAB#FFFFFF#000000##FFFFFF
##5F2BAB1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#4A4D69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2bab;
/* rgb */ color: rgb(95, 43, 171);
/* oklch */ color: oklch(43.7% 0.190 296.0);
Tailwind
colors: {
  custom: {
    50: '#946ac5',
    500: '#5f2bab',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bab;
$custom-light: #946ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bab",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 264.375,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4366,
    "c": 0.18951,
    "h": 296
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#5F2BAB
secondary
#A1C46E
accent
#E345A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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