#5F3DCC#5F3DCC

#5F3DCC is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.8% C 0.207 H 286.9°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5F3DCC
RGBrgb(95, 61, 204)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(53.4%, 70.1%, 0%, 20%)
CIE-LABlab(38.07, 50.20, -69.04)
CIE-LCHlch(38.07, 85.36, 306.02°)
OKLaboklab(48.81% 0.0603 -0.1985)
OKLCHoklch(48.81% 0.207 286.9)
XYZxyz(17.2839, 10.1291, 58.1594)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DCC #AACC3D
analogous
#3D63CC #5F3DCC #A73DCC
triadic
#5F3DCC #CC5F3D #3DCC5F
tetradic
#5F3DCC #CC3D63 #AACC3D #3DCCA7
square
#5F3DCC #CC3D63 #AACC3D #3DCCA7
split-complementary
#5F3DCC #CCA73D #63CC3D
monochromatic
#311E71 #472AA1 #5F3DCC #876DD9 #AF9EE5

Accessibility & contrast

On white

6.94
#5F3DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5F3DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DCC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DCC#FFFFFF#000000##FFFFFF
##5F3DCC1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#326380
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3dcc;
/* rgb */ color: rgb(95, 61, 204);
/* oklch */ color: oklch(48.8% 0.207 286.9);
Tailwind
colors: {
  custom: {
    50: '#9775dd',
    500: '#5f3dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dcc;
$custom-light: #9775dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dcc",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 204
  },
  "hsl": {
    "h": 254.266,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48811,
    "c": 0.20741,
    "h": 286.9
  },
  "luminance": 0.1013
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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