#5F34B8#5F34B8

#5F34B8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.194 H 291.8°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5F34B8
RGBrgb(95, 52, 184)
HSLhsl(260, 56%, 46%)
HSVhsv(260, 72%, 72%)
CMYKcmyk(48.4%, 71.7%, 0%, 27.8%)
CIE-LABlab(34.70, 49.23, -62.85)
CIE-LCHlch(34.70, 79.84, 308.07°)
OKLaboklab(45.89% 0.0721 -0.1803)
OKLCHoklch(45.89% 0.194 291.8)
XYZxyz(14.5966, 8.3490, 46.1805)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34B8 #8DB834
analogous
#344BB8 #5F34B8 #A134B8
triadic
#5F34B8 #B85F34 #34B85F
tetradic
#5F34B8 #B8344B #8DB834 #34B8A1
square
#5F34B8 #B8344B #8DB834 #34B8A1
split-complementary
#5F34B8 #B8A134 #4BB834
monochromatic
#2E1959 #462788 #5F34B8 #8059D0 #A489DE

Accessibility & contrast

On white

7.87
#5F34B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F34B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34B8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34B8#FFFFFF#000000##FFFFFF
##5F34B81.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#435673
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f34b8;
/* rgb */ color: rgb(95, 52, 184);
/* oklch */ color: oklch(45.9% 0.194 291.8);
Tailwind
colors: {
  custom: {
    50: '#956fce',
    500: '#5f34b8',
    950: '#000000',
  },
}
SCSS
$custom: #5f34b8;
$custom-light: #956fce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34b8",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 184
  },
  "hsl": {
    "h": 259.545,
    "s": 55.932,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.19416,
    "h": 291.8
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#5F34B8
secondary
#B0C880
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F34B8

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

Preview Lab → · Contrast checker → · Palette generator →

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