#5F2DCC#5F2DCC

#5F2DCC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.9% C 0.224 H 288.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5F2DCC
RGBrgb(95, 45, 204)
HSLhsl(259, 64%, 49%)
HSVhsv(259, 78%, 80%)
CMYKcmyk(53.4%, 77.9%, 0%, 20%)
CIE-LABlab(35.34, 57.94, -73.53)
CIE-LCHlch(35.34, 93.62, 308.24°)
OKLaboklab(46.88% 0.0725 -0.2115)
OKLCHoklch(46.88% 0.224 288.9)
XYZxyz(16.5536, 8.6685, 57.9160)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DCC #9ACC2D
analogous
#2D4BCC #5F2DCC #AF2DCC
triadic
#5F2DCC #CC5F2D #2DCC5F
tetradic
#5F2DCC #CC2D4B #9ACC2D #2DCCAF
square
#5F2DCC #CC2D4B #9ACC2D #2DCCAF
split-complementary
#5F2DCC #CCAF2D #4BCC2D
monochromatic
#301768 #48229A #5F2DCC #835BDB #A98DE6

Accessibility & contrast

On white

7.68
#5F2DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F2DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DCC
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DCC#FFFFFF#000000##FFFFFF
##5F2DCC1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#335B7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f2dcc;
/* rgb */ color: rgb(95, 45, 204);
/* oklch */ color: oklch(46.9% 0.224 288.9);
Tailwind
colors: {
  custom: {
    50: '#986cdd',
    500: '#5f2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5f2dcc;
$custom-light: #986cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2dcc",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 258.868,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46884,
    "c": 0.2236,
    "h": 288.9
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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