#5F3ECC#5F3ECC

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

Color values

HEX#5F3ECC
RGBrgb(95, 62, 204)
HSLhsl(254, 58%, 52%)
HSVhsv(254, 70%, 80%)
CMYKcmyk(53.4%, 69.6%, 0%, 20%)
CIE-LABlab(38.26, 49.67, -68.73)
CIE-LCHlch(38.26, 84.80, 305.85°)
OKLaboklab(48.95% 0.0594 -0.1976)
OKLCHoklch(48.95% 0.206 286.7)
XYZxyz(17.3378, 10.2369, 58.1774)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ECC #ABCC3E
analogous
#3E64CC #5F3ECC #A63ECC
triadic
#5F3ECC #CC5F3E #3ECC5F
tetradic
#5F3ECC #CC3E64 #ABCC3E #3ECCA6
square
#5F3ECC #CC3E64 #ABCC3E #3ECCA6
split-complementary
#5F3ECC #CCA63E #64CC3E
monochromatic
#311E72 #472BA2 #5F3ECC #876ED9 #AF9FE6

Accessibility & contrast

On white

6.89
#5F3ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5F3ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3ECC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ECC#FFFFFF#000000##FFFFFF
##5F3ECC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3ecc;
/* rgb */ color: rgb(95, 62, 204);
/* oklch */ color: oklch(48.9% 0.206 286.7);
Tailwind
colors: {
  custom: {
    50: '#9776dd',
    500: '#5f3ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ecc;
$custom-light: #9776dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ecc",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 204
  },
  "hsl": {
    "h": 253.944,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48947,
    "c": 0.20629,
    "h": 286.7
  },
  "luminance": 0.10238
}

Semantic roles & 50–950 ramp

primary
#5F3ECC
secondary
#C3D294
accent
#E146BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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