#5F46BE#5F46BE

#5F46BE is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.0% C 0.179 H 287.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5F46BE
RGBrgb(95, 70, 190)
HSLhsl(253, 48%, 51%)
HSVhsv(253, 63%, 75%)
CMYKcmyk(50%, 63.2%, 0%, 25.5%)
CIE-LABlab(38.78, 41.12, -59.74)
CIE-LCHlch(38.78, 72.52, 304.54°)
OKLaboklab(48.97% 0.0537 -0.1711)
OKLCHoklch(48.97% 0.179 287.4)
XYZxyz(16.2010, 10.5302, 49.8841)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46BE #A5BE46
analogous
#4669BE #5F46BE #9B46BE
triadic
#5F46BE #BE5F46 #46BE5F
tetradic
#5F46BE #BE4669 #A5BE46 #46BE9B
square
#5F46BE #BE4669 #A5BE46 #46BE9B
split-complementary
#5F46BE #BE9B46 #69BE46
monochromatic
#322466 #483493 #5F46BE #8673CE #ADA1DE

Accessibility & contrast

On white

6.76
#5F46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46BE
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46BE#FFFFFF#000000##FFFFFF
##5F46BE1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#3D637B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f46be;
/* rgb */ color: rgb(95, 70, 190);
/* oklch */ color: oklch(49.0% 0.179 287.4);
Tailwind
colors: {
  custom: {
    50: '#947bd2',
    500: '#5f46be',
    950: '#000000',
  },
}
SCSS
$custom: #5f46be;
$custom-light: #947bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46be",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 252.5,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.17936,
    "h": 287.4
  },
  "luminance": 0.10531
}

Semantic roles & 50–950 ramp

primary
#5F46BE
secondary
#BFCA95
accent
#D850BB
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F46BE

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

Preview Lab → · Contrast checker → · Palette generator →

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