#5F34AF#5F34AF

#5F34AF is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.184 H 293.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5F34AF
RGBrgb(95, 52, 175)
HSLhsl(261, 54%, 45%)
HSVhsv(261, 70%, 69%)
CMYKcmyk(45.7%, 70.3%, 0%, 31.4%)
CIE-LABlab(33.95, 46.75, -58.74)
CIE-LCHlch(33.95, 75.07, 308.52°)
OKLaboklab(45.12% 0.0739 -0.1682)
OKLCHoklch(45.12% 0.184 293.7)
XYZxyz(13.6831, 7.9836, 41.3692)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34AF #84AF34
analogous
#3446AF #5F34AF #9D34AF
triadic
#5F34AF #AF5F34 #34AF5F
tetradic
#5F34AF #AF3446 #84AF34 #34AF9D
square
#5F34AF #AF3446 #84AF34 #34AF9D
split-complementary
#5F34AF #AF9D34 #46AF34
monochromatic
#2C1851 #452680 #5F34AF #7E54CC #A283DA

Accessibility & contrast

On white

8.09
#5F34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5F34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34AF
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34AF#FFFFFF#000000##FFFFFF
##5F34AF1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#48536E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f34af;
/* rgb */ color: rgb(95, 52, 175);
/* oklch */ color: oklch(45.1% 0.184 293.7);
Tailwind
colors: {
  custom: {
    50: '#936fc8',
    500: '#5f34af',
    950: '#000000',
  },
}
SCSS
$custom: #5f34af;
$custom-light: #936fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34af",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 260.976,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4512,
    "c": 0.1837,
    "h": 293.7
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#5F34AF
secondary
#AAC47B
accent
#DE4AAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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