#5F2CAA#5F2CAA

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

Color values

HEX#5F2CAA
RGBrgb(95, 44, 170)
HSLhsl(264, 59%, 42%)
HSVhsv(264, 74%, 67%)
CMYKcmyk(44.1%, 74.1%, 0%, 33.3%)
CIE-LABlab(32.12, 49.39, -58.74)
CIE-LCHlch(32.12, 76.74, 310.06°)
OKLaboklab(43.69% 0.0825 -0.1681)
OKLCHoklch(43.69% 0.187 296.1)
XYZxyz(12.8738, 7.1362, 38.7216)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CAA #77AA2C
analogous
#2C38AA #5F2CAA #9E2CAA
triadic
#5F2CAA #AA5F2C #2CAA5F
tetradic
#5F2CAA #AA2C38 #77AA2C #2CAA9E
square
#5F2CAA #AA2C38 #77AA2C #2CAA9E
split-complementary
#5F2CAA #AA9E2C #38AA2C
monochromatic
#291349 #441F79 #5F2CAA #7C44CF #9E75DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2CAA#FFFFFF#000000##FFFFFF
##5F2CAA1.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)
#004CAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#4B4D69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2caa;
/* rgb */ color: rgb(95, 44, 170);
/* oklch */ color: oklch(43.7% 0.187 296.1);
Tailwind
colors: {
  custom: {
    50: '#936ac4',
    500: '#5f2caa',
    950: '#000000',
  },
}
SCSS
$custom: #5f2caa;
$custom-light: #936ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2caa",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 264.286,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4369,
    "c": 0.1873,
    "h": 296.1
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#5F2CAA
secondary
#A1C36F
accent
#E246A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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