#5F2DB9#5F2DB9

#5F2DB9 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.203 H 292.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5F2DB9
RGBrgb(95, 45, 185)
HSLhsl(261, 61%, 45%)
HSVhsv(261, 76%, 73%)
CMYKcmyk(48.6%, 75.7%, 0%, 27.5%)
CIE-LABlab(33.59, 52.88, -65.26)
CIE-LCHlch(33.59, 84.00, 309.02°)
OKLaboklab(45.13% 0.0779 -0.1873)
OKLCHoklch(45.13% 0.203 292.6)
XYZxyz(14.4122, 7.8119, 46.6380)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DB9 #87B92D
analogous
#2D41B9 #5F2DB9 #A52DB9
triadic
#5F2DB9 #B95F2D #2DB95F
tetradic
#5F2DB9 #B92D41 #87B92D #2DB9A5
square
#5F2DB9 #B92D41 #87B92D #2DB9A5
split-complementary
#5F2DB9 #B9A52D #41B92D
monochromatic
#2C1557 #462188 #5F2DB9 #7F4FD4 #A280E0

Accessibility & contrast

On white

8.20
#5F2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5F2DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DB9
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DB9#FFFFFF#000000##FFFFFF
##5F2DB91.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#425371
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2db9;
/* rgb */ color: rgb(95, 45, 185);
/* oklch */ color: oklch(45.1% 0.203 292.6);
Tailwind
colors: {
  custom: {
    50: '#956bcf',
    500: '#5f2db9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2db9;
$custom-light: #956bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2db9",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 261.429,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45129,
    "c": 0.20286,
    "h": 292.6
  },
  "luminance": 0.07812
}

Semantic roles & 50–950 ramp

primary
#5F2DB9
secondary
#ACC979
accent
#E444AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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