#5F3DCD#5F3DCD

#5F3DCD is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.209 H 286.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5F3DCD
RGBrgb(95, 61, 205)
HSLhsl(254, 59%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(53.7%, 70.2%, 0%, 19.6%)
CIE-LABlab(38.16, 50.49, -69.48)
CIE-LCHlch(38.16, 85.89, 306.00°)
OKLaboklab(48.9% 0.0601 -0.1998)
OKLCHoklch(48.9% 0.209 286.7)
XYZxyz(17.4042, 10.1772, 58.7931)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DCD #ABCD3D
analogous
#3D63CD #5F3DCD #A73DCD
triadic
#5F3DCD #CD5F3D #3DCD5F
tetradic
#5F3DCD #CD3D63 #ABCD3D #3DCDA7
square
#5F3DCD #CD3D63 #ABCD3D #3DCDA7
split-complementary
#5F3DCD #CDA73D #63CD3D
monochromatic
#311D72 #472AA3 #5F3DCD #876EDA #AF9EE6

Accessibility & contrast

On white

6.92
#5F3DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5F3DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DCD
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DCD#FFFFFF#000000##FFFFFF
##5F3DCD1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#316381
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3dcd;
/* rgb */ color: rgb(95, 61, 205);
/* oklch */ color: oklch(48.9% 0.209 286.7);
Tailwind
colors: {
  custom: {
    50: '#9775dd',
    500: '#5f3dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dcd;
$custom-light: #9775dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dcd",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 205
  },
  "hsl": {
    "h": 254.167,
    "s": 59.016,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48898,
    "c": 0.20859,
    "h": 286.7
  },
  "luminance": 0.10178
}

Semantic roles & 50–950 ramp

primary
#5F3DCD
secondary
#C3D293
accent
#E246BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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