#5F3EE6#5F3EE6

#5F3EE6 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.237 H 283.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5F3EE6
RGBrgb(95, 62, 230)
HSLhsl(252, 77%, 57%)
HSVhsv(252, 73%, 90%)
CMYKcmyk(58.7%, 73%, 0%, 9.8%)
CIE-LABlab(40.56, 57.15, -79.89)
CIE-LCHlch(40.56, 98.23, 305.57°)
OKLaboklab(51.27% 0.0541 -0.2302)
OKLCHoklch(51.27% 0.237 283.2)
XYZxyz(20.7205, 11.5899, 75.9928)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EE6 #C5E63E
analogous
#3E71E6 #5F3EE6 #B33EE6
triadic
#5F3EE6 #E65F3E #3EE65F
tetradic
#5F3EE6 #E63E71 #C5E63E #3EE6B3
square
#5F3EE6 #E63E71 #C5E63E #3EE6B3
split-complementary
#5F3EE6 #E6B33E #71E63E
monochromatic
#2D1396 #3D1ACC #5F3EE6 #8C74ED #B9AAF4

Accessibility & contrast

On white

6.33
#5F3EE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5F3EE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3EE6
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EE6#FFFFFF#000000##FFFFFF
##5F3EE61.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065EB
Deuteranopia (green-blind)
#005AE3
Tritanopia (blue-blind)
#006D8F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f3ee6;
/* rgb */ color: rgb(95, 62, 230);
/* oklch */ color: oklch(51.3% 0.237 283.2);
Tailwind
colors: {
  custom: {
    50: '#9b77ef',
    500: '#5f3ee6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ee6;
$custom-light: #9b77ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ee6",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 230
  },
  "hsl": {
    "h": 251.786,
    "s": 77.064,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51274,
    "c": 0.23651,
    "h": 283.2
  },
  "luminance": 0.11591
}

Semantic roles & 50–950 ramp

primary
#5F3EE6
secondary
#D5E29E
accent
#F434CE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F3EE6

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

Preview Lab → · Contrast checker → · Palette generator →

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