#5F2DA8#5F2DA8

#5F2DA8 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.184 H 296.5°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA8
RGBrgb(95, 45, 168)
HSLhsl(264, 58%, 42%)
HSVhsv(264, 73%, 66%)
CMYKcmyk(43.5%, 73.2%, 0%, 34.1%)
CIE-LABlab(32.12, 48.38, -57.54)
CIE-LCHlch(32.12, 75.18, 310.06°)
OKLaboklab(43.64% 0.082 -0.1646)
OKLCHoklch(43.64% 0.184 296.5)
XYZxyz(12.7237, 7.1366, 37.7453)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA8 #76A82D
analogous
#2D39A8 #5F2DA8 #9D2DA8
triadic
#5F2DA8 #A85F2D #2DA85F
tetradic
#5F2DA8 #A82D39 #76A82D #2DA89D
square
#5F2DA8 #A82D39 #76A82D #2DA89D
split-complementary
#5F2DA8 #A89D2D #39A82D
monochromatic
#281347 #442078 #5F2DA8 #7C45CD #9E75DA

Accessibility & contrast

On white

8.65
#5F2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F2DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA8
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA8#FFFFFF#000000##FFFFFF
##5F2DA81.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#4C4D68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2da8;
/* rgb */ color: rgb(95, 45, 168);
/* oklch */ color: oklch(43.6% 0.184 296.5);
Tailwind
colors: {
  custom: {
    50: '#936bc3',
    500: '#5f2da8',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da8;
$custom-light: #936bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da8",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 264.39,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.18393,
    "h": 296.5
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#5F2DA8
secondary
#A0C26F
accent
#E147A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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