#5F3FC2#5F3FC2

#5F3FC2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.193 H 288.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5F3FC2
RGBrgb(95, 63, 194)
HSLhsl(255, 52%, 50%)
HSVhsv(255, 68%, 76%)
CMYKcmyk(51%, 67.5%, 0%, 23.9%)
CIE-LABlab(37.63, 46.24, -63.95)
CIE-LCHlch(37.63, 78.91, 305.87°)
OKLaboklab(48.24% 0.0602 -0.1835)
OKLCHoklch(48.24% 0.193 288.1)
XYZxyz(16.2316, 9.8822, 52.0807)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FC2 #A2C23F
analogous
#3F61C2 #5F3FC2 #A03FC2
triadic
#5F3FC2 #C25F3F #3FC25F
tetradic
#5F3FC2 #C23F61 #A2C23F #3FC2A0
square
#5F3FC2 #C23F61 #A2C23F #3FC2A0
split-complementary
#5F3FC2 #C2A03F #61C23F
monochromatic
#312066 #482F95 #5F3FC2 #866DD1 #AC9CE0

Accessibility & contrast

On white

7.06
#5F3FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5F3FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FC2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FC2#FFFFFF#000000##FFFFFF
##5F3FC21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#3B607B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3fc2;
/* rgb */ color: rgb(95, 63, 194);
/* oklch */ color: oklch(48.2% 0.193 288.1);
Tailwind
colors: {
  custom: {
    50: '#9576d5',
    500: '#5f3fc2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fc2;
$custom-light: #9576d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fc2",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 254.656,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48236,
    "c": 0.19312,
    "h": 288.1
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#5F3FC2
secondary
#BDCC91
accent
#DB4DB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F3FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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