#5F34B3#5F34B3

#5F34B3 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.188 H 292.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5F34B3
RGBrgb(95, 52, 179)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 70%)
CMYKcmyk(46.9%, 70.9%, 0%, 29.8%)
CIE-LABlab(34.28, 47.85, -60.58)
CIE-LCHlch(34.28, 77.20, 308.31°)
OKLaboklab(45.46% 0.0731 -0.1736)
OKLCHoklch(45.46% 0.188 292.8)
XYZxyz(14.0817, 8.1431, 43.4689)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34B3 #88B334
analogous
#3449B3 #5F34B3 #9E34B3
triadic
#5F34B3 #B35F34 #34B35F
tetradic
#5F34B3 #B33449 #88B334 #34B39E
square
#5F34B3 #B33449 #88B334 #34B39E
split-complementary
#5F34B3 #B39E34 #49B334
monochromatic
#2D1854 #462684 #5F34B3 #7F56CE #A386DC

Accessibility & contrast

On white

7.99
#5F34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5F34B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34B3
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34B3#FFFFFF#000000##FFFFFF
##5F34B31.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#465470
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f34b3;
/* rgb */ color: rgb(95, 52, 179);
/* oklch */ color: oklch(45.5% 0.188 292.8);
Tailwind
colors: {
  custom: {
    50: '#946fcb',
    500: '#5f34b3',
    950: '#000000',
  },
}
SCSS
$custom: #5f34b3;
$custom-light: #946fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34b3",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 260.315,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45458,
    "c": 0.18837,
    "h": 292.8
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#5F34B3
secondary
#ADC57D
accent
#DE49AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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