#5F34B5#5F34B5

#5F34B5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.191 H 292.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5F34B5
RGBrgb(95, 52, 181)
HSLhsl(260, 55%, 46%)
HSVhsv(260, 71%, 71%)
CMYKcmyk(47.5%, 71.3%, 0%, 29%)
CIE-LABlab(34.45, 48.40, -61.49)
CIE-LCHlch(34.45, 78.25, 308.21°)
OKLaboklab(45.63% 0.0727 -0.1763)
OKLCHoklch(45.63% 0.191 292.4)
XYZxyz(14.2855, 8.2246, 44.5419)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34B5 #8AB534
analogous
#3449B5 #5F34B5 #9F34B5
triadic
#5F34B5 #B55F34 #34B55F
tetradic
#5F34B5 #B53449 #8AB534 #34B59F
square
#5F34B5 #B53449 #8AB534 #34B59F
split-complementary
#5F34B5 #B59F34 #49B534
monochromatic
#2D1956 #462685 #5F34B5 #7F57CF #A387DC

Accessibility & contrast

On white

7.94
#5F34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5F34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34B5
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34B5#FFFFFF#000000##FFFFFF
##5F34B51.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#445571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f34b5;
/* rgb */ color: rgb(95, 52, 181);
/* oklch */ color: oklch(45.6% 0.191 292.4);
Tailwind
colors: {
  custom: {
    50: '#946fcc',
    500: '#5f34b5',
    950: '#000000',
  },
}
SCSS
$custom: #5f34b5;
$custom-light: #946fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34b5",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 260,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45629,
    "c": 0.19069,
    "h": 292.4
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#5F34B5
secondary
#AEC67F
accent
#DF49AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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