#5F2CA6#5F2CA6

#5F2CA6 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.183 H 297.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA6
RGBrgb(95, 44, 166)
HSLhsl(265, 58%, 41%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(42.8%, 73.5%, 0%, 34.9%)
CIE-LABlab(31.78, 48.34, -56.89)
CIE-LCHlch(31.78, 74.65, 310.36°)
OKLaboklab(43.35% 0.0834 -0.1627)
OKLCHoklch(43.35% 0.183 297.1)
XYZxyz(12.5011, 6.9872, 36.7590)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA6 #73A62C
analogous
#2C36A6 #5F2CA6 #9C2CA6
triadic
#5F2CA6 #A65F2C #2CA65F
tetradic
#5F2CA6 #A62C36 #73A62C #2CA69C
square
#5F2CA6 #A62C36 #73A62C #2CA69C
split-complementary
#5F2CA6 #A69C2C #36A62C
monochromatic
#281245 #431F76 #5F2CA6 #7C42CD #9E73DA

Accessibility & contrast

On white

8.76
#5F2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA6
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA6#FFFFFF#000000##FFFFFF
##5F2CA61.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#4D4B66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ca6;
/* rgb */ color: rgb(95, 44, 166);
/* oklch */ color: oklch(43.3% 0.183 297.1);
Tailwind
colors: {
  custom: {
    50: '#936ac1',
    500: '#5f2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca6;
$custom-light: #936ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca6",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 265.082,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43348,
    "c": 0.18283,
    "h": 297.1
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#5F2CA6
secondary
#9EC16D
accent
#E146A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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