#5F34B4#5F34B4

#5F34B4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.190 H 292.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5F34B4
RGBrgb(95, 52, 180)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 71%)
CMYKcmyk(47.2%, 71.1%, 0%, 29.4%)
CIE-LABlab(34.36, 48.13, -61.04)
CIE-LCHlch(34.36, 77.73, 308.25°)
OKLaboklab(45.54% 0.0729 -0.1749)
OKLCHoklch(45.54% 0.19 292.6)
XYZxyz(14.1832, 8.1837, 44.0035)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34B4 #89B434
analogous
#3449B4 #5F34B4 #9F34B4
triadic
#5F34B4 #B45F34 #34B45F
tetradic
#5F34B4 #B43449 #89B434 #34B49F
square
#5F34B4 #B43449 #89B434 #34B49F
split-complementary
#5F34B4 #B49F34 #49B434
monochromatic
#2D1955 #462685 #5F34B4 #7F57CE #A386DC

Accessibility & contrast

On white

7.96
#5F34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34B4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34B4#FFFFFF#000000##FFFFFF
##5F34B41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#455570
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f34b4;
/* rgb */ color: rgb(95, 52, 180);
/* oklch */ color: oklch(45.5% 0.190 292.6);
Tailwind
colors: {
  custom: {
    50: '#946fcb',
    500: '#5f34b4',
    950: '#000000',
  },
}
SCSS
$custom: #5f34b4;
$custom-light: #946fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34b4",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 260.156,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45543,
    "c": 0.18953,
    "h": 292.6
  },
  "luminance": 0.08184
}

Semantic roles & 50–950 ramp

primary
#5F34B4
secondary
#AEC67E
accent
#DF49AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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