#5F46BB#5F46BB

#5F46BB is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.7% C 0.176 H 287.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5F46BB
RGBrgb(95, 70, 187)
HSLhsl(253, 46%, 50%)
HSVhsv(253, 63%, 73%)
CMYKcmyk(49.2%, 62.6%, 0%, 26.7%)
CIE-LABlab(38.55, 40.23, -58.34)
CIE-LCHlch(38.55, 70.87, 304.59°)
OKLaboklab(48.73% 0.0539 -0.167)
OKLCHoklch(48.73% 0.176 287.9)
XYZxyz(15.8765, 10.4004, 48.1750)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46BB #A2BB46
analogous
#4667BB #5F46BB #9A46BB
triadic
#5F46BB #BB5F46 #46BB5F
tetradic
#5F46BB #BB4667 #A2BB46 #46BB9A
square
#5F46BB #BB4667 #A2BB46 #46BB9A
split-complementary
#5F46BB #BB9A46 #67BB46
monochromatic
#312462 #48358F #5F46BB #8673CB #ACA0DC

Accessibility & contrast

On white

6.82
#5F46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5F46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46BB
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46BB#FFFFFF#000000##FFFFFF
##5F46BB1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f46bb;
/* rgb */ color: rgb(95, 70, 187);
/* oklch */ color: oklch(48.7% 0.176 287.9);
Tailwind
colors: {
  custom: {
    50: '#947bd0',
    500: '#5f46bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f46bb;
$custom-light: #947bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46bb",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 252.821,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48732,
    "c": 0.17554,
    "h": 287.9
  },
  "luminance": 0.10401
}

Semantic roles & 50–950 ramp

primary
#5F46BB
secondary
#BDC894
accent
#D652BA
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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