#5F46BF#5F46BF

#5F46BF is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.0% C 0.181 H 287.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5F46BF
RGBrgb(95, 70, 191)
HSLhsl(252, 49%, 51%)
HSVhsv(252, 63%, 75%)
CMYKcmyk(50.3%, 63.4%, 0%, 25.1%)
CIE-LABlab(38.85, 41.42, -60.20)
CIE-LCHlch(38.85, 73.07, 304.53°)
OKLaboklab(49.05% 0.0536 -0.1725)
OKLCHoklch(49.05% 0.181 287.3)
XYZxyz(16.3107, 10.5740, 50.4617)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46BF #A6BF46
analogous
#4669BF #5F46BF #9B46BF
triadic
#5F46BF #BF5F46 #46BF5F
tetradic
#5F46BF #BF4669 #A6BF46 #46BF9B
square
#5F46BF #BF4669 #A6BF46 #46BF9B
split-complementary
#5F46BF #BF9B46 #69BF46
monochromatic
#322467 #473394 #5F46BF #8673CF #AEA1DE

Accessibility & contrast

On white

6.74
#5F46BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5F46BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46BF
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46BF#FFFFFF#000000##FFFFFF
##5F46BF1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#3C637C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f46bf;
/* rgb */ color: rgb(95, 70, 191);
/* oklch */ color: oklch(49.0% 0.181 287.3);
Tailwind
colors: {
  custom: {
    50: '#947bd3',
    500: '#5f46bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f46bf;
$custom-light: #947bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46bf",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 252.397,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49047,
    "c": 0.18064,
    "h": 287.3
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#5F46BF
secondary
#C0CB96
accent
#D850BC
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F46BF

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

Preview Lab → · Contrast checker → · Palette generator →

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