#5F34AB#5F34AB

#5F34AB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.179 H 294.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5F34AB
RGBrgb(95, 52, 171)
HSLhsl(262, 53%, 44%)
HSVhsv(262, 70%, 67%)
CMYKcmyk(44.4%, 69.6%, 0%, 32.9%)
CIE-LABlab(33.62, 45.66, -56.88)
CIE-LCHlch(33.62, 72.94, 308.76°)
OKLaboklab(44.79% 0.0746 -0.1627)
OKLCHoklch(44.79% 0.179 294.6)
XYZxyz(13.2960, 7.8288, 39.3308)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34AB #80AB34
analogous
#3444AB #5F34AB #9A34AB
triadic
#5F34AB #AB5F34 #34AB5F
tetradic
#5F34AB #AB3444 #80AB34 #34AB9A
square
#5F34AB #AB3444 #80AB34 #34AB9A
split-complementary
#5F34AB #AB9A34 #44AB34
monochromatic
#2B174D #45267C #5F34AB #7D52CA #A181D9

Accessibility & contrast

On white

8.18
#5F34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5F34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34AB
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34AB#FFFFFF#000000##FFFFFF
##5F34AB1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#4A516B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f34ab;
/* rgb */ color: rgb(95, 52, 171);
/* oklch */ color: oklch(44.8% 0.179 294.6);
Tailwind
colors: {
  custom: {
    50: '#936fc5',
    500: '#5f34ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f34ab;
$custom-light: #936fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34ab",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 261.681,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44787,
    "c": 0.17901,
    "h": 294.6
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#5F34AB
secondary
#A8C279
accent
#DD4BA8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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