#5F2CA9#5F2CA9

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

Color values

HEX#5F2CA9
RGBrgb(95, 44, 169)
HSLhsl(264, 59%, 42%)
HSVhsv(264, 74%, 66%)
CMYKcmyk(43.8%, 74%, 0%, 33.7%)
CIE-LABlab(32.03, 49.12, -58.28)
CIE-LCHlch(32.03, 76.22, 310.13°)
OKLaboklab(43.6% 0.0827 -0.1668)
OKLCHoklch(43.6% 0.186 296.4)
XYZxyz(12.7795, 7.0986, 38.2253)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA9 #76A92C
analogous
#2C38A9 #5F2CA9 #9E2CA9
triadic
#5F2CA9 #A95F2C #2CA95F
tetradic
#5F2CA9 #A92C38 #76A92C #2CA99E
square
#5F2CA9 #A92C38 #76A92C #2CA99E
split-complementary
#5F2CA9 #A99E2C #38A92C
monochromatic
#281348 #441F78 #5F2CA9 #7C44CE #9E74DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2CA9#FFFFFF#000000##FFFFFF
##5F2CA91.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)
#004CAD
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#4B4C68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ca9;
/* rgb */ color: rgb(95, 44, 169);
/* oklch */ color: oklch(43.6% 0.186 296.4);
Tailwind
colors: {
  custom: {
    50: '#936ac4',
    500: '#5f2ca9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca9;
$custom-light: #936ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca9",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 264.48,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43604,
    "c": 0.18618,
    "h": 296.4
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#5F2CA9
secondary
#A0C36E
accent
#E246A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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