#5F3ECA#5F3ECA

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

Color values

HEX#5F3ECA
RGBrgb(95, 62, 202)
HSLhsl(254, 57%, 52%)
HSVhsv(254, 69%, 79%)
CMYKcmyk(53%, 69.3%, 0%, 20.8%)
CIE-LABlab(38.10, 49.09, -67.85)
CIE-LCHlch(38.10, 83.75, 305.89°)
OKLaboklab(48.77% 0.0598 -0.195)
OKLCHoklch(48.77% 0.204 287)
XYZxyz(17.0994, 10.1415, 56.9222)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ECA #A9CA3E
analogous
#3E63CA #5F3ECA #A53ECA
triadic
#5F3ECA #CA5F3E #3ECA5F
tetradic
#5F3ECA #CA3E63 #A9CA3E #3ECAA5
square
#5F3ECA #CA3E63 #A9CA3E #3ECAA5
split-complementary
#5F3ECA #CAA53E #63CA3E
monochromatic
#321F6F #472C9F #5F3ECA #876ED7 #AF9EE4

Accessibility & contrast

On white

6.93
#5F3ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F3ECA
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ECA#FFFFFF#000000##FFFFFF
##5F3ECA1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#34627F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3eca;
/* rgb */ color: rgb(95, 62, 202);
/* oklch */ color: oklch(48.8% 0.204 287.0);
Tailwind
colors: {
  custom: {
    50: '#9676db',
    500: '#5f3eca',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eca;
$custom-light: #9676db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eca",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 254.143,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.20391,
    "h": 287
  },
  "luminance": 0.10142
}

Semantic roles & 50–950 ramp

primary
#5F3ECA
secondary
#C2D193
accent
#E048BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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