#5F2CB0#5F2CB0

#5F2CB0 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.194 H 294.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5F2CB0
RGBrgb(95, 44, 176)
HSLhsl(263, 60%, 43%)
HSVhsv(263, 75%, 69%)
CMYKcmyk(46%, 75%, 0%, 31%)
CIE-LABlab(32.63, 50.96, -61.49)
CIE-LCHlch(32.63, 79.86, 309.65°)
OKLaboklab(44.21% 0.0811 -0.1762)
OKLCHoklch(44.21% 0.194 294.7)
XYZxyz(13.4543, 7.3685, 41.7793)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CB0 #7DB02C
analogous
#2C3BB0 #5F2CB0 #A12CB0
triadic
#5F2CB0 #B05F2C #2CB05F
tetradic
#5F2CB0 #B02C3B #7DB02C #2CB0A1
square
#5F2CB0 #B02C3B #7DB02C #2CB0A1
split-complementary
#5F2CB0 #B0A12C #3BB02C
monochromatic
#2A144E #45207F #5F2CB0 #7D48D1 #A079DD

Accessibility & contrast

On white

8.49
#5F2CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F2CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CB0
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CB0#FFFFFF#000000##FFFFFF
##5F2CB01.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#484F6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2cb0;
/* rgb */ color: rgb(95, 44, 176);
/* oklch */ color: oklch(44.2% 0.194 294.7);
Tailwind
colors: {
  custom: {
    50: '#946ac9',
    500: '#5f2cb0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2cb0;
$custom-light: #946ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2cb0",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 176
  },
  "hsl": {
    "h": 263.182,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44214,
    "c": 0.19395,
    "h": 294.7
  },
  "luminance": 0.07369
}

Semantic roles & 50–950 ramp

primary
#5F2CB0
secondary
#A5C672
accent
#E345A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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