#5F2CAF#5F2CAF

#5F2CAF is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.193 H 294.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5F2CAF
RGBrgb(95, 44, 175)
HSLhsl(263, 60%, 43%)
HSVhsv(263, 75%, 69%)
CMYKcmyk(45.7%, 74.9%, 0%, 31.4%)
CIE-LABlab(32.54, 50.70, -61.03)
CIE-LCHlch(32.54, 79.34, 309.72°)
OKLaboklab(44.13% 0.0813 -0.1749)
OKLCHoklch(44.13% 0.193 294.9)
XYZxyz(13.3558, 7.3290, 41.2601)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CAF #7CAF2C
analogous
#2C3AAF #5F2CAF #A02CAF
triadic
#5F2CAF #AF5F2C #2CAF5F
tetradic
#5F2CAF #AF2C3A #7CAF2C #2CAFA0
square
#5F2CAF #AF2C3A #7CAF2C #2CAFA0
split-complementary
#5F2CAF #AFA02C #3AAF2C
monochromatic
#2A134D #44207E #5F2CAF #7D47D1 #A078DD

Accessibility & contrast

On white

8.52
#5F2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F2CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CAF
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CAF#FFFFFF#000000##FFFFFF
##5F2CAF1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#484F6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2caf;
/* rgb */ color: rgb(95, 44, 175);
/* oklch */ color: oklch(44.1% 0.193 294.9);
Tailwind
colors: {
  custom: {
    50: '#946ac8',
    500: '#5f2caf',
    950: '#000000',
  },
}
SCSS
$custom: #5f2caf;
$custom-light: #946ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2caf",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 263.359,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44126,
    "c": 0.19285,
    "h": 294.9
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#5F2CAF
secondary
#A5C572
accent
#E345A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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