#5F34AA#5F34AA

#5F34AA is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.178 H 294.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5F34AA
RGBrgb(95, 52, 170)
HSLhsl(262, 53%, 44%)
HSVhsv(262, 69%, 67%)
CMYKcmyk(44.1%, 69.4%, 0%, 33.3%)
CIE-LABlab(33.54, 45.39, -56.41)
CIE-LCHlch(33.54, 72.40, 308.82°)
OKLaboklab(44.71% 0.0748 -0.1613)
OKLCHoklch(44.71% 0.178 294.9)
XYZxyz(13.2011, 7.7908, 38.8307)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34AA #7FAA34
analogous
#3444AA #5F34AA #9A34AA
triadic
#5F34AA #AA5F34 #34AA5F
tetradic
#5F34AA #AA3444 #7FAA34 #34AA9A
square
#5F34AA #AA3444 #7FAA34 #34AA9A
split-complementary
#5F34AA #AA9A34 #44AA34
monochromatic
#2B174C #45267B #5F34AA #7D51CA #A080D8

Accessibility & contrast

On white

8.21
#5F34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5F34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34AA
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34AA#FFFFFF#000000##FFFFFF
##5F34AA1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f34aa;
/* rgb */ color: rgb(95, 52, 170);
/* oklch */ color: oklch(44.7% 0.178 294.9);
Tailwind
colors: {
  custom: {
    50: '#936fc4',
    500: '#5f34aa',
    950: '#000000',
  },
}
SCSS
$custom: #5f34aa;
$custom-light: #936fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34aa",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 261.864,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44705,
    "c": 0.17782,
    "h": 294.9
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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