#5F2CB1#5F2CB1

#5F2CB1 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.195 H 294.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5F2CB1
RGBrgb(95, 44, 177)
HSLhsl(263, 60%, 43%)
HSVhsv(263, 75%, 69%)
CMYKcmyk(46.3%, 75.1%, 0%, 30.6%)
CIE-LABlab(32.72, 51.23, -61.94)
CIE-LCHlch(32.72, 80.38, 309.59°)
OKLaboklab(44.3% 0.0808 -0.1775)
OKLCHoklch(44.3% 0.195 294.5)
XYZxyz(13.5536, 7.4082, 42.3023)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2CB1 #7EB12C
analogous
#2C3BB1 #5F2CB1 #A12CB1
triadic
#5F2CB1 #B15F2C #2CB15F
tetradic
#5F2CB1 #B12C3B #7EB12C #2CB1A1
square
#5F2CB1 #B12C3B #7EB12C #2CB1A1
split-complementary
#5F2CB1 #B1A12C #3BB12C
monochromatic
#2A144F #452080 #5F2CB1 #7D49D2 #A07ADE

Accessibility & contrast

On white

8.46
#5F2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5F2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2CB1
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2CB1#FFFFFF#000000##FFFFFF
##5F2CB11.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#47506D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2cb1;
/* rgb */ color: rgb(95, 44, 177);
/* oklch */ color: oklch(44.3% 0.195 294.5);
Tailwind
colors: {
  custom: {
    50: '#946ac9',
    500: '#5f2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2cb1;
$custom-light: #946ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2cb1",
  "rgb": {
    "r": 95,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 263.008,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44302,
    "c": 0.19507,
    "h": 294.5
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#5F2CB1
secondary
#A6C673
accent
#E344A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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