#5F45CF#5F45CF

#5F45CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.2% C 0.202 H 285.2°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5F45CF
RGBrgb(95, 69, 207)
HSLhsl(251, 59%, 54%)
HSVhsv(251, 67%, 81%)
CMYKcmyk(54.1%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.90, 46.73, -67.79)
CIE-LCHlch(39.90, 82.34, 304.58°)
OKLaboklab(50.2% 0.0528 -0.1948)
OKLCHoklch(50.2% 0.202 285.2)
XYZxyz(18.1065, 11.1931, 60.2258)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45CF #B5CF45
analogous
#4570CF #5F45CF #A445CF
triadic
#5F45CF #CF5F45 #45CF5F
tetradic
#5F45CF #CF4570 #B5CF45 #45CFA4
square
#5F45CF #CF4570 #B5CF45 #45CFA4
split-complementary
#5F45CF #CFA445 #70CF45
monochromatic
#31207A #442CAB #5F45CF #8976DC #B3A6E8

Accessibility & contrast

On white

6.48
#5F45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45CF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45CF#FFFFFF#000000##FFFFFF
##5F45CF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#2E6884
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f45cf;
/* rgb */ color: rgb(95, 69, 207);
/* oklch */ color: oklch(50.2% 0.202 285.2);
Tailwind
colors: {
  custom: {
    50: '#977adf',
    500: '#5f45cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f45cf;
$custom-light: #977adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45cf",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 251.304,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.502,
    "c": 0.20182,
    "h": 285.2
  },
  "luminance": 0.11194
}

Semantic roles & 50–950 ramp

primary
#5F45CF
secondary
#CAD59B
accent
#E246C5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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