#5F45CE#5F45CE

#5F45CE is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.1% C 0.201 H 285.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5F45CE
RGBrgb(95, 69, 206)
HSLhsl(251, 58%, 54%)
HSVhsv(251, 67%, 81%)
CMYKcmyk(53.9%, 66.5%, 0%, 19.2%)
CIE-LABlab(39.82, 46.44, -67.34)
CIE-LCHlch(39.82, 81.80, 304.59°)
OKLaboklab(50.12% 0.0529 -0.1935)
OKLCHoklch(50.12% 0.201 285.3)
XYZxyz(17.9847, 11.1444, 59.5840)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45CE #B4CE45
analogous
#4570CE #5F45CE #A445CE
triadic
#5F45CE #CE5F45 #45CE5F
tetradic
#5F45CE #CE4570 #B4CE45 #45CEA4
square
#5F45CE #CE4570 #B4CE45 #45CEA4
split-complementary
#5F45CE #CEA445 #70CE45
monochromatic
#312079 #442DA9 #5F45CE #8975DB #B2A6E8

Accessibility & contrast

On white

6.50
#5F45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5F45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45CE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45CE#FFFFFF#000000##FFFFFF
##5F45CE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#2F6884
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f45ce;
/* rgb */ color: rgb(95, 69, 206);
/* oklch */ color: oklch(50.1% 0.201 285.3);
Tailwind
colors: {
  custom: {
    50: '#977ade',
    500: '#5f45ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f45ce;
$custom-light: #977ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45ce",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 251.387,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50116,
    "c": 0.20059,
    "h": 285.3
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#5F45CE
secondary
#CAD59A
accent
#E246C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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