#5F3FC5#5F3FC5

#5F3FC5 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.5% C 0.197 H 287.7°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5F3FC5
RGBrgb(95, 63, 197)
HSLhsl(254, 54%, 51%)
HSVhsv(254, 68%, 77%)
CMYKcmyk(51.8%, 68%, 0%, 22.7%)
CIE-LABlab(37.88, 47.11, -65.30)
CIE-LCHlch(37.88, 80.52, 305.81°)
OKLaboklab(48.49% 0.0597 -0.1875)
OKLCHoklch(48.49% 0.197 287.7)
XYZxyz(16.5719, 10.0183, 53.8730)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FC5 #A5C53F
analogous
#3F62C5 #5F3FC5 #A23FC5
triadic
#5F3FC5 #C55F3F #3FC55F
tetradic
#5F3FC5 #C53F62 #A5C53F #3FC5A2
square
#5F3FC5 #C53F62 #A5C53F #3FC5A2
split-complementary
#5F3FC5 #C5A23F #62C53F
monochromatic
#32206A #482E99 #5F3FC5 #866ED3 #AD9DE1

Accessibility & contrast

On white

6.99
#5F3FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5F3FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FC5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FC5#FFFFFF#000000##FFFFFF
##5F3FC51.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#38617D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3fc5;
/* rgb */ color: rgb(95, 63, 197);
/* oklch */ color: oklch(48.5% 0.197 287.7);
Tailwind
colors: {
  custom: {
    50: '#9676d8',
    500: '#5f3fc5',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fc5;
$custom-light: #9676d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fc5",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 197
  },
  "hsl": {
    "h": 254.328,
    "s": 53.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48488,
    "c": 0.19675,
    "h": 287.7
  },
  "luminance": 0.10019
}

Semantic roles & 50–950 ramp

primary
#5F3FC5
secondary
#BFCE92
accent
#DD4BBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F3FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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