#5F2DB0#5F2DB0

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

Color values

HEX#5F2DB0
RGBrgb(95, 45, 176)
HSLhsl(263, 59%, 43%)
HSVhsv(263, 74%, 69%)
CMYKcmyk(46%, 74.4%, 0%, 31%)
CIE-LABlab(32.80, 50.49, -61.21)
CIE-LCHlch(32.80, 79.35, 309.52°)
OKLaboklab(44.33% 0.0802 -0.1754)
OKLCHoklch(44.33% 0.193 294.6)
XYZxyz(13.4920, 7.4439, 41.7918)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DB0 #7EB02D
analogous
#2D3CB0 #5F2DB0 #A02DB0
triadic
#5F2DB0 #B05F2D #2DB05F
tetradic
#5F2DB0 #B02D3C #7EB02D #2DB0A0
square
#5F2DB0 #B02D3C #7EB02D #2DB0A0
split-complementary
#5F2DB0 #B0A02D #3CB02D
monochromatic
#2A144F #45217F #5F2DB0 #7D4AD1 #A07ADD

Accessibility & contrast

On white

8.44
#5F2DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5F2DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DB0
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DB0#FFFFFF#000000##FFFFFF
##5F2DB01.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2db0;
/* rgb */ color: rgb(95, 45, 176);
/* oklch */ color: oklch(44.3% 0.193 294.6);
Tailwind
colors: {
  custom: {
    50: '#946bc9',
    500: '#5f2db0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2db0;
$custom-light: #946bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2db0",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 262.901,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4433,
    "c": 0.19288,
    "h": 294.6
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#5F2DB0
secondary
#A6C573
accent
#E245A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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