#5F34C6#5F34C6

#5F34C6 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.210 H 289.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F34C6
RGBrgb(95, 52, 198)
HSLhsl(258, 58%, 49%)
HSVhsv(258, 74%, 78%)
CMYKcmyk(52%, 73.7%, 0%, 22.4%)
CIE-LABlab(35.92, 53.08, -69.08)
CIE-LCHlch(35.92, 87.12, 307.54°)
OKLaboklab(47.12% 0.069 -0.1985)
OKLCHoklch(47.12% 0.21 289.2)
XYZxyz(16.1374, 8.9654, 54.2953)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34C6 #9BC634
analogous
#3452C6 #5F34C6 #A834C6
triadic
#5F34C6 #C65F34 #34C65F
tetradic
#5F34C6 #C63452 #9BC634 #34C6A8
square
#5F34C6 #C63452 #9BC634 #34C6A8
split-complementary
#5F34C6 #C6A834 #52C634
monochromatic
#301B65 #482796 #5F34C6 #8462D6 #AA92E2

Accessibility & contrast

On white

7.52
#5F34C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F34C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34C6
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34C6#FFFFFF#000000##FFFFFF
##5F34C61.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#385C7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f34c6;
/* rgb */ color: rgb(95, 52, 198);
/* oklch */ color: oklch(47.1% 0.210 289.2);
Tailwind
colors: {
  custom: {
    50: '#9770d8',
    500: '#5f34c6',
    950: '#000000',
  },
}
SCSS
$custom: #5f34c6;
$custom-light: #9770d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34c6",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 257.671,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47122,
    "c": 0.21018,
    "h": 289.2
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#5F34C6
secondary
#B9CD89
accent
#E246B4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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