#5F34C2#5F34C2

#5F34C2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.206 H 289.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5F34C2
RGBrgb(95, 52, 194)
HSLhsl(258, 58%, 48%)
HSVhsv(258, 73%, 76%)
CMYKcmyk(51%, 73.2%, 0%, 23.9%)
CIE-LABlab(35.56, 51.98, -67.33)
CIE-LCHlch(35.56, 85.06, 307.67°)
OKLaboklab(46.76% 0.0699 -0.1934)
OKLCHoklch(46.76% 0.206 289.9)
XYZxyz(15.6821, 8.7832, 51.8975)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34C2 #97C234
analogous
#3450C2 #5F34C2 #A634C2
triadic
#5F34C2 #C25F34 #34C25F
tetradic
#5F34C2 #C23450 #97C234 #34C2A6
square
#5F34C2 #C23450 #97C234 #34C2A6
split-complementary
#5F34C2 #C2A634 #50C234
monochromatic
#301A61 #472792 #5F34C2 #835FD4 #A88FE1

Accessibility & contrast

On white

7.62
#5F34C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F34C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34C2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34C2#FFFFFF#000000##FFFFFF
##5F34C21.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#3C5A78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f34c2;
/* rgb */ color: rgb(95, 52, 194);
/* oklch */ color: oklch(46.8% 0.206 289.9);
Tailwind
colors: {
  custom: {
    50: '#9670d6',
    500: '#5f34c2',
    950: '#000000',
  },
}
SCSS
$custom: #5f34c2;
$custom-light: #9670d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34c2",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 258.169,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46764,
    "c": 0.20564,
    "h": 289.9
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#5F34C2
secondary
#B7CC86
accent
#E147B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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