#5F2CA0#5F2CA0

#5F2CA0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.176 H 298.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5F2CA0
RGBrgb(95, 44, 160)
HSLhsl(266, 57%, 40%)
HSVhsv(266, 73%, 63%)
CMYKcmyk(40.6%, 72.5%, 0%, 37.3%)
CIE-LABlab(31.28, 46.77, -54.07)
CIE-LCHlch(31.28, 71.49, 310.86°)
OKLaboklab(42.84% 0.0847 -0.1544)
OKLCHoklch(42.84% 0.176 298.7)
XYZxyz(11.9635, 6.7722, 33.9277)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CA0 #6DA02C
analogous
#2C33A0 #5F2CA0 #992CA0
triadic
#5F2CA0 #A05F2C #2CA05F
tetradic
#5F2CA0 #A02C33 #6DA02C #2CA099
square
#5F2CA0 #A02C33 #6DA02C #2CA099
split-complementary
#5F2CA0 #A0992C #33A02C
monochromatic
#261240 #421F70 #5F2CA0 #7C3FCA #9D6FD7

Accessibility & contrast

On white

8.92
#5F2CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F2CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CA0
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CA0#FFFFFF#000000##FFFFFF
##5F2CA01.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#4F4963
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ca0;
/* rgb */ color: rgb(95, 44, 160);
/* oklch */ color: oklch(42.8% 0.176 298.7);
Tailwind
colors: {
  custom: {
    50: '#926abd',
    500: '#5f2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ca0;
$custom-light: #926abd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ca0",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 266.379,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.42843,
    "c": 0.17611,
    "h": 298.7
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#5F2CA0
secondary
#99BF69
accent
#E0489D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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