#5F2BAC#5F2BAC

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

Color values

HEX#5F2BAC
RGBrgb(95, 43, 172)
HSLhsl(264, 60%, 42%)
HSVhsv(264, 75%, 67%)
CMYKcmyk(44.8%, 75%, 0%, 32.5%)
CIE-LABlab(32.12, 50.38, -59.93)
CIE-LCHlch(32.12, 78.29, 310.05°)
OKLaboklab(43.75% 0.0829 -0.1716)
OKLCHoklch(43.75% 0.191 295.8)
XYZxyz(13.0276, 7.1389, 39.7133)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BAC #78AC2B
analogous
#2B38AC #5F2BAC #A02BAC
triadic
#5F2BAC #AC5F2B #2BAC5F
tetradic
#5F2BAC #AC2B38 #78AC2B #2BACA0
square
#5F2BAC #AC2B38 #78AC2B #2BACA0
split-complementary
#5F2BAC #ACA02B #38AC2B
monochromatic
#29134A #441F7B #5F2BAC #7D44D0 #9F75DC

Accessibility & contrast

On white

8.65
#5F2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BAC
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BAC#FFFFFF#000000##FFFFFF
##5F2BAC1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#4A4D69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2bac;
/* rgb */ color: rgb(95, 43, 172);
/* oklch */ color: oklch(43.7% 0.191 295.8);
Tailwind
colors: {
  custom: {
    50: '#946ac6',
    500: '#5f2bac',
    950: '#000000',
  },
}
SCSS
$custom: #5f2bac;
$custom-light: #946ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2bac",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 264.186,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43748,
    "c": 0.19061,
    "h": 295.8
  },
  "luminance": 0.07139
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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