#5F2DCD#5F2DCD

#5F2DCD is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.225 H 288.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5F2DCD
RGBrgb(95, 45, 205)
HSLhsl(259, 64%, 49%)
HSVhsv(259, 78%, 80%)
CMYKcmyk(53.7%, 78%, 0%, 19.6%)
CIE-LABlab(35.43, 58.21, -73.96)
CIE-LCHlch(35.43, 94.12, 308.20°)
OKLaboklab(46.98% 0.0722 -0.2128)
OKLCHoklch(46.98% 0.225 288.8)
XYZxyz(16.6739, 8.7166, 58.5497)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DCD #9BCD2D
analogous
#2D4BCD #5F2DCD #AF2DCD
triadic
#5F2DCD #CD5F2D #2DCD5F
tetradic
#5F2DCD #CD2D4B #9BCD2D #2DCDAF
square
#5F2DCD #CD2D4B #9BCD2D #2DCDAF
split-complementary
#5F2DCD #CDAF2D #4BCD2D
monochromatic
#301769 #48229B #5F2DCD #845CDB #AA8EE6

Accessibility & contrast

On white

7.65
#5F2DCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5F2DCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DCD
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DCD#FFFFFF#000000##FFFFFF
##5F2DCD1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#335B7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f2dcd;
/* rgb */ color: rgb(95, 45, 205);
/* oklch */ color: oklch(47.0% 0.225 288.8);
Tailwind
colors: {
  custom: {
    50: '#986cde',
    500: '#5f2dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5f2dcd;
$custom-light: #986cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2dcd",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 205
  },
  "hsl": {
    "h": 258.75,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46979,
    "c": 0.22469,
    "h": 288.8
  },
  "luminance": 0.08717
}

Semantic roles & 50–950 ramp

primary
#5F2DCD
secondary
#B9D185
accent
#E741B3
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5F2DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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