#5F46BC#5F46BC

#5F46BC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.177 H 287.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5F46BC
RGBrgb(95, 70, 188)
HSLhsl(253, 47%, 51%)
HSVhsv(253, 63%, 74%)
CMYKcmyk(49.5%, 62.8%, 0%, 26.3%)
CIE-LABlab(38.63, 40.53, -58.81)
CIE-LCHlch(38.63, 71.42, 304.57°)
OKLaboklab(48.81% 0.0539 -0.1684)
OKLCHoklch(48.81% 0.177 287.7)
XYZxyz(15.9839, 10.4433, 48.7408)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46BC #A3BC46
analogous
#4668BC #5F46BC #9A46BC
triadic
#5F46BC #BC5F46 #46BC5F
tetradic
#5F46BC #BC4668 #A3BC46 #46BC9A
square
#5F46BC #BC4668 #A3BC46 #46BC9A
split-complementary
#5F46BC #BC9A46 #68BC46
monochromatic
#322464 #483490 #5F46BC #8673CC #ADA0DD

Accessibility & contrast

On white

6.80
#5F46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5F46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46BC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46BC#FFFFFF#000000##FFFFFF
##5F46BC1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#3F627A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f46bc;
/* rgb */ color: rgb(95, 70, 188);
/* oklch */ color: oklch(48.8% 0.177 287.7);
Tailwind
colors: {
  custom: {
    50: '#947bd1',
    500: '#5f46bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f46bc;
$custom-light: #947bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46bc",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 252.712,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4881,
    "c": 0.17682,
    "h": 287.7
  },
  "luminance": 0.10444
}

Semantic roles & 50–950 ramp

primary
#5F46BC
secondary
#BEC995
accent
#D651BA
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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