#5F34C5#5F34C5

#5F34C5 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.209 H 289.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5F34C5
RGBrgb(95, 52, 197)
HSLhsl(258, 58%, 49%)
HSVhsv(258, 74%, 77%)
CMYKcmyk(51.8%, 73.6%, 0%, 22.7%)
CIE-LABlab(35.83, 52.81, -68.65)
CIE-LCHlch(35.83, 86.61, 307.57°)
OKLaboklab(47.03% 0.0692 -0.1973)
OKLCHoklch(47.03% 0.209 289.3)
XYZxyz(16.0224, 8.9194, 53.6899)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34C5 #9AC534
analogous
#3452C5 #5F34C5 #A834C5
triadic
#5F34C5 #C55F34 #34C55F
tetradic
#5F34C5 #C53452 #9AC534 #34C5A8
square
#5F34C5 #C53452 #9AC534 #34C5A8
split-complementary
#5F34C5 #C5A834 #52C534
monochromatic
#301A64 #482795 #5F34C5 #8361D5 #A991E2

Accessibility & contrast

On white

7.54
#5F34C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F34C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34C5
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34C5#FFFFFF#000000##FFFFFF
##5F34C51.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#395B7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f34c5;
/* rgb */ color: rgb(95, 52, 197);
/* oklch */ color: oklch(47.0% 0.209 289.3);
Tailwind
colors: {
  custom: {
    50: '#9670d8',
    500: '#5f34c5',
    950: '#000000',
  },
}
SCSS
$custom: #5f34c5;
$custom-light: #9670d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34c5",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 257.793,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47033,
    "c": 0.20905,
    "h": 289.3
  },
  "luminance": 0.0892
}

Semantic roles & 50–950 ramp

primary
#5F34C5
secondary
#B8CD88
accent
#E146B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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