#5F34D7#5F34D7

#5F34D7 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.229 H 286.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5F34D7
RGBrgb(95, 52, 215)
HSLhsl(256, 67%, 52%)
HSVhsv(256, 76%, 84%)
CMYKcmyk(55.8%, 75.8%, 0%, 15.7%)
CIE-LABlab(37.47, 57.77, -76.39)
CIE-LCHlch(37.47, 95.77, 307.10°)
OKLaboklab(48.69% 0.0646 -0.2199)
OKLCHoklch(48.69% 0.229 286.4)
XYZxyz(18.2094, 9.7941, 65.2078)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34D7 #ACD734
analogous
#345BD7 #5F34D7 #B034D7
triadic
#5F34D7 #D75F34 #34D75F
tetradic
#5F34D7 #D7345B #ACD734 #34D7B0
square
#5F34D7 #D7345B #ACD734 #34D7B0
split-complementary
#5F34D7 #D7B034 #5BD734
monochromatic
#311879 #4622AC #5F34D7 #8767E1 #B09AEB

Accessibility & contrast

On white

7.10
#5F34D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F34D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34D7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34D7#FFFFFF#000000##FFFFFF
##5F34D71.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#266284
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f34d7;
/* rgb */ color: rgb(95, 52, 215);
/* oklch */ color: oklch(48.7% 0.229 286.4);
Tailwind
colors: {
  custom: {
    50: '#9971e5',
    500: '#5f34d7',
    950: '#000000',
  },
}
SCSS
$custom: #5f34d7;
$custom-light: #9971e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34d7",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 215
  },
  "hsl": {
    "h": 255.828,
    "s": 67.078,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48685,
    "c": 0.22923,
    "h": 286.4
  },
  "luminance": 0.09795
}

Semantic roles & 50–950 ramp

primary
#5F34D7
secondary
#C4D790
accent
#EA3EBD
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F34D7

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

Preview Lab → · Contrast checker → · Palette generator →

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