#5F45BC#5F45BC

#5F45BC is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.178 H 288.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5F45BC
RGBrgb(95, 69, 188)
HSLhsl(253, 47%, 50%)
HSVhsv(253, 63%, 74%)
CMYKcmyk(49.5%, 63.3%, 0%, 26.3%)
CIE-LABlab(38.41, 41.10, -59.16)
CIE-LCHlch(38.41, 72.04, 304.79°)
OKLaboklab(48.65% 0.0549 -0.1695)
OKLCHoklch(48.65% 0.178 288)
XYZxyz(15.9219, 10.3193, 48.7201)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45BC #A2BC45
analogous
#4566BC #5F45BC #9A45BC
triadic
#5F45BC #BC5F45 #45BC5F
tetradic
#5F45BC #BC4566 #A2BC45 #45BC9A
square
#5F45BC #BC4566 #A2BC45 #45BC9A
split-complementary
#5F45BC #BC9A45 #66BC45
monochromatic
#312463 #483490 #5F45BC #8672CC #AC9FDC

Accessibility & contrast

On white

6.85
#5F45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F45BC
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45BC#FFFFFF#000000##FFFFFF
##5F45BC1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#3F617A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f45bc;
/* rgb */ color: rgb(95, 69, 188);
/* oklch */ color: oklch(48.7% 0.178 288.0);
Tailwind
colors: {
  custom: {
    50: '#947ad1',
    500: '#5f45bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f45bc;
$custom-light: #947ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45bc",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 253.109,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48652,
    "c": 0.17813,
    "h": 288
  },
  "luminance": 0.1032
}

Semantic roles & 50–950 ramp

primary
#5F45BC
secondary
#BDC994
accent
#D751B9
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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