#5F2DA5#5F2DA5

#5F2DA5 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.181 H 297.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA5
RGBrgb(95, 45, 165)
HSLhsl(265, 57%, 41%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(42.4%, 72.7%, 0%, 35.3%)
CIE-LABlab(31.87, 47.59, -56.14)
CIE-LCHlch(31.87, 73.60, 310.29°)
OKLaboklab(43.38% 0.0827 -0.1605)
OKLCHoklch(43.38% 0.181 297.3)
XYZxyz(12.4475, 7.0260, 36.2904)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA5 #73A52D
analogous
#2D37A5 #5F2DA5 #9B2DA5
triadic
#5F2DA5 #A55F2D #2DA55F
tetradic
#5F2DA5 #A52D37 #73A52D #2DA59B
square
#5F2DA5 #A52D37 #73A52D #2DA59B
split-complementary
#5F2DA5 #A59B2D #37A52D
monochromatic
#281345 #432075 #5F2DA5 #7C43CC #9E73D9

Accessibility & contrast

On white

8.73
#5F2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA5
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA5#FFFFFF#000000##FFFFFF
##5F2DA51.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2da5;
/* rgb */ color: rgb(95, 45, 165);
/* oklch */ color: oklch(43.4% 0.181 297.3);
Tailwind
colors: {
  custom: {
    50: '#936ac1',
    500: '#5f2da5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da5;
$custom-light: #936ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da5",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 265,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43384,
    "c": 0.18055,
    "h": 297.3
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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