#5F2CA4#5F2CA4

#5F2CA4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.181 H 297.7°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA4
RGBrgb(95, 44, 164)
HSLhsl(266, 58%, 41%)
HSVhsv(266, 73%, 64%)
CMYKcmyk(42.1%, 73.2%, 0%, 35.7%)
CIE-LABlab(31.61, 47.82, -55.95)
CIE-LCHlch(31.61, 73.60, 310.52°)
OKLaboklab(43.18% 0.0838 -0.16)
OKLCHoklch(43.18% 0.181 297.7)
XYZxyz(12.3191, 6.9144, 35.8003)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA4 #71A42C
analogous
#2C35A4 #5F2CA4 #9B2CA4
triadic
#5F2CA4 #A45F2C #2CA45F
tetradic
#5F2CA4 #A42C35 #71A42C #2CA49B
square
#5F2CA4 #A42C35 #71A42C #2CA49B
split-complementary
#5F2CA4 #A49B2C #35A42C
monochromatic
#271243 #431F74 #5F2CA4 #7C41CC #9D71D9

Accessibility & contrast

On white

8.81
#5F2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA4
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA4#FFFFFF#000000##FFFFFF
##5F2CA41.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4E4A65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ca4;
/* rgb */ color: rgb(95, 44, 164);
/* oklch */ color: oklch(43.2% 0.181 297.7);
Tailwind
colors: {
  custom: {
    50: '#936ac0',
    500: '#5f2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca4;
$custom-light: #936ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca4",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 265.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43178,
    "c": 0.1806,
    "h": 297.7
  },
  "luminance": 0.06915
}

Semantic roles & 50–950 ramp

primary
#5F2CA4
secondary
#9CC06B
accent
#E1479F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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