#5F3CC4#5F3CC4

#5F3CC4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.0% C 0.199 H 288.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5F3CC4
RGBrgb(95, 60, 196)
HSLhsl(255, 54%, 50%)
HSVhsv(255, 69%, 77%)
CMYKcmyk(51.5%, 69.4%, 0%, 23.1%)
CIE-LABlab(37.21, 48.44, -65.81)
CIE-LCHlch(37.21, 81.71, 306.35°)
OKLaboklab(47.98% 0.0626 -0.189)
OKLCHoklch(47.98% 0.199 288.3)
XYZxyz(16.2961, 9.6494, 53.2177)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CC4 #A1C43C
analogous
#3C5DC4 #5F3CC4 #A33CC4
triadic
#5F3CC4 #C45F3C #3CC45F
tetradic
#5F3CC4 #C43C5D #A1C43C #3CC4A3
square
#5F3CC4 #C43C5D #A1C43C #3CC4A3
split-complementary
#5F3CC4 #C4A33C #5DC43C
monochromatic
#311F67 #482D96 #5F3CC4 #866BD2 #AC9AE0

Accessibility & contrast

On white

7.17
#5F3CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F3CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CC4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CC4#FFFFFF#000000##FFFFFF
##5F3CC41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0054C1
Tritanopia (blue-blind)
#395F7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3cc4;
/* rgb */ color: rgb(95, 60, 196);
/* oklch */ color: oklch(48.0% 0.199 288.3);
Tailwind
colors: {
  custom: {
    50: '#9674d7',
    500: '#5f3cc4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cc4;
$custom-light: #9674d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cc4",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 196
  },
  "hsl": {
    "h": 255.441,
    "s": 53.543,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47983,
    "c": 0.19907,
    "h": 288.3
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#5F3CC4
secondary
#BDCC90
accent
#DD4BB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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