#5F2CAD#5F2CAD

#5F2CAD is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.191 H 295.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5F2CAD
RGBrgb(95, 44, 173)
HSLhsl(264, 59%, 43%)
HSVhsv(264, 75%, 68%)
CMYKcmyk(45.1%, 74.6%, 0%, 32.2%)
CIE-LABlab(32.37, 50.17, -60.12)
CIE-LCHlch(32.37, 78.30, 309.85°)
OKLaboklab(43.95% 0.0818 -0.1722)
OKLCHoklch(43.95% 0.191 295.4)
XYZxyz(13.1608, 7.2511, 40.2332)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CAD #7AAD2C
analogous
#2C39AD #5F2CAD #A02CAD
triadic
#5F2CAD #AD5F2C #2CAD5F
tetradic
#5F2CAD #AD2C39 #7AAD2C #2CADA0
square
#5F2CAD #AD2C39 #7AAD2C #2CADA0
split-complementary
#5F2CAD #ADA02C #39AD2C
monochromatic
#29134B #44207C #5F2CAD #7D46D0 #9F77DC

Accessibility & contrast

On white

8.57
#5F2CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5F2CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CAD
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CAD#FFFFFF#000000##FFFFFF
##5F2CAD1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#004AAB
Tritanopia (blue-blind)
#494E6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2cad;
/* rgb */ color: rgb(95, 44, 173);
/* oklch */ color: oklch(44.0% 0.191 295.4);
Tailwind
colors: {
  custom: {
    50: '#946ac6',
    500: '#5f2cad',
    950: '#000000',
  },
}
SCSS
$custom: #5f2cad;
$custom-light: #946ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2cad",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 173
  },
  "hsl": {
    "h": 263.721,
    "s": 59.447,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43951,
    "c": 0.19063,
    "h": 295.4
  },
  "luminance": 0.07251
}

Semantic roles & 50–950 ramp

primary
#5F2CAD
secondary
#A3C471
accent
#E345A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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