#5F34CC#5F34CC

#5F34CC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.217 H 288.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5F34CC
RGBrgb(95, 52, 204)
HSLhsl(257, 60%, 50%)
HSVhsv(257, 75%, 80%)
CMYKcmyk(53.4%, 74.5%, 0%, 20%)
CIE-LABlab(36.46, 54.74, -71.69)
CIE-LCHlch(36.46, 90.20, 307.36°)
OKLaboklab(47.67% 0.0675 -0.2062)
OKLCHoklch(47.67% 0.217 288.1)
XYZxyz(16.8432, 9.2477, 58.0125)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34CC #A1CC34
analogous
#3455CC #5F34CC #AB34CC
triadic
#5F34CC #CC5F34 #34CC5F
tetradic
#5F34CC #CC3455 #A1CC34 #34CCAB
square
#5F34CC #CC3455 #A1CC34 #34CCAB
split-complementary
#5F34CC #CCAB34 #55CC34
monochromatic
#311B6B #48279C #5F34CC #8665D8 #AC96E5

Accessibility & contrast

On white

7.37
#5F34CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5F34CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34CC
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34CC#FFFFFF#000000##FFFFFF
##5F34CC1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#335E7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f34cc;
/* rgb */ color: rgb(95, 52, 204);
/* oklch */ color: oklch(47.7% 0.217 288.1);
Tailwind
colors: {
  custom: {
    50: '#9770dd',
    500: '#5f34cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f34cc;
$custom-light: #9770dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34cc",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 256.974,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47667,
    "c": 0.21696,
    "h": 288.1
  },
  "luminance": 0.09249
}

Semantic roles & 50–950 ramp

primary
#5F34CC
secondary
#BDD08C
accent
#E345B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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