#5F45BB#5F45BB

#5F45BB is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.6% C 0.177 H 288.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5F45BB
RGBrgb(95, 69, 187)
HSLhsl(253, 46%, 50%)
HSVhsv(253, 63%, 73%)
CMYKcmyk(49.2%, 63.1%, 0%, 26.7%)
CIE-LABlab(38.33, 40.81, -58.70)
CIE-LCHlch(38.33, 71.49, 304.81°)
OKLaboklab(48.57% 0.055 -0.1681)
OKLCHoklch(48.57% 0.177 288.1)
XYZxyz(15.8145, 10.2763, 48.1543)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45BB #A1BB45
analogous
#4566BB #5F45BB #9A45BB
triadic
#5F45BB #BB5F45 #45BB5F
tetradic
#5F45BB #BB4566 #A1BB45 #45BB9A
square
#5F45BB #BB4566 #A1BB45 #45BB9A
split-complementary
#5F45BB #BB9A45 #66BB45
monochromatic
#312462 #48348F #5F45BB #8672CB #AC9FDC

Accessibility & contrast

On white

6.87
#5F45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5F45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45BB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45BB#FFFFFF#000000##FFFFFF
##5F45BB1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#3F6179
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f45bb;
/* rgb */ color: rgb(95, 69, 187);
/* oklch */ color: oklch(48.6% 0.177 288.1);
Tailwind
colors: {
  custom: {
    50: '#947ad0',
    500: '#5f45bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f45bb;
$custom-light: #947ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45bb",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 253.22,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48573,
    "c": 0.17686,
    "h": 288.1
  },
  "luminance": 0.10277
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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