#5F3EF2#5F3EF2

#5F3EF2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.4% C 0.250 H 281.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5F3EF2
RGBrgb(95, 62, 242)
HSLhsl(251, 87%, 60%)
HSVhsv(251, 74%, 95%)
CMYKcmyk(60.7%, 74.4%, 0%, 5.1%)
CIE-LABlab(41.67, 60.56, -84.85)
CIE-LCHlch(41.67, 104.25, 305.52°)
OKLaboklab(52.39% 0.0513 -0.2447)
OKLCHoklch(52.39% 0.25 281.8)
XYZxyz(22.4639, 12.2873, 85.1751)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EF2 #D1F23E
analogous
#3E77F2 #5F3EF2 #B93EF2
triadic
#5F3EF2 #F25F3E #3EF25F
tetradic
#5F3EF2 #F23E77 #D1F23E #3EF2B9
square
#5F3EF2 #F23E77 #D1F23E #3EF2B9
split-complementary
#5F3EF2 #F2B93E #77F23E
monochromatic
#290BAA #360FE3 #5F3EF2 #8F77F6 #BEB1FA

Accessibility & contrast

On white

6.07
#5F3EF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5F3EF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3EF2
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EF2#FFFFFF#000000##FFFFFF
##5F3EF21.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068F7
Deuteranopia (green-blind)
#005CEF
Tritanopia (blue-blind)
#007296
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f3ef2;
/* rgb */ color: rgb(95, 62, 242);
/* oklch */ color: oklch(52.4% 0.250 281.8);
Tailwind
colors: {
  custom: {
    50: '#9d77f8',
    500: '#5f3ef2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ef2;
$custom-light: #9d77f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ef2",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 242
  },
  "hsl": {
    "h": 251,
    "s": 87.379,
    "l": 59.608
  },
  "oklch": {
    "l": 0.52393,
    "c": 0.25004,
    "h": 281.8
  },
  "luminance": 0.12289
}

Semantic roles & 50–950 ramp

primary
#5F3EF2
secondary
#DCE9A3
accent
#FE2AD7
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5F3EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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