#5F2DA7#5F2DA7

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

Color values

HEX#5F2DA7
RGBrgb(95, 45, 167)
HSLhsl(265, 58%, 42%)
HSVhsv(265, 73%, 65%)
CMYKcmyk(43.1%, 73.1%, 0%, 34.5%)
CIE-LABlab(32.03, 48.12, -57.07)
CIE-LCHlch(32.03, 74.65, 310.13°)
OKLaboklab(43.55% 0.0822 -0.1633)
OKLCHoklch(43.55% 0.183 296.7)
XYZxyz(12.6309, 7.0994, 37.2566)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA7 #75A72D
analogous
#2D38A7 #5F2DA7 #9C2DA7
triadic
#5F2DA7 #A75F2D #2DA75F
tetradic
#5F2DA7 #A72D38 #75A72D #2DA79C
square
#5F2DA7 #A72D38 #75A72D #2DA79C
split-complementary
#5F2DA7 #A79C2D #38A72D
monochromatic
#281347 #442077 #5F2DA7 #7C44CD #9E75DA

Accessibility & contrast

On white

8.68
#5F2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F2DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA7
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA7#FFFFFF#000000##FFFFFF
##5F2DA71.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#4C4C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2da7;
/* rgb */ color: rgb(95, 45, 167);
/* oklch */ color: oklch(43.6% 0.183 296.7);
Tailwind
colors: {
  custom: {
    50: '#936bc2',
    500: '#5f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da7;
$custom-light: #936bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da7",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 264.59,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43554,
    "c": 0.1828,
    "h": 296.7
  },
  "luminance": 0.071
}

Semantic roles & 50–950 ramp

primary
#5F2DA7
secondary
#9FC16E
accent
#E147A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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