#5F2DB7#5F2DB7

#5F2DB7 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.201 H 293.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5F2DB7
RGBrgb(95, 45, 183)
HSLhsl(262, 61%, 45%)
HSVhsv(262, 75%, 72%)
CMYKcmyk(48.1%, 75.4%, 0%, 28.2%)
CIE-LABlab(33.41, 52.35, -64.37)
CIE-LCHlch(33.41, 82.97, 309.12°)
OKLaboklab(44.95% 0.0784 -0.1847)
OKLCHoklch(44.95% 0.201 293)
XYZxyz(14.2026, 7.7281, 45.5339)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DB7 #85B72D
analogous
#2D40B7 #5F2DB7 #A42DB7
triadic
#5F2DB7 #B75F2D #2DB75F
tetradic
#5F2DB7 #B72D40 #85B72D #2DB7A4
square
#5F2DB7 #B72D40 #85B72D #2DB7A4
split-complementary
#5F2DB7 #B7A42D #40B72D
monochromatic
#2C1555 #462186 #5F2DB7 #7E4ED3 #A27FDF

Accessibility & contrast

On white

8.25
#5F2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5F2DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DB7
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DB7#FFFFFF#000000##FFFFFF
##5F2DB71.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004CB4
Tritanopia (blue-blind)
#445270
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2db7;
/* rgb */ color: rgb(95, 45, 183);
/* oklch */ color: oklch(45.0% 0.201 293.0);
Tailwind
colors: {
  custom: {
    50: '#956bce',
    500: '#5f2db7',
    950: '#000000',
  },
}
SCSS
$custom: #5f2db7;
$custom-light: #956bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2db7",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 261.739,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4495,
    "c": 0.20064,
    "h": 293
  },
  "luminance": 0.07729
}

Semantic roles & 50–950 ramp

primary
#5F2DB7
secondary
#ABC878
accent
#E444AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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