#5F45E1#5F45E1

#5F45E1 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.7% C 0.223 H 282.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5F45E1
RGBrgb(95, 69, 225)
HSLhsl(250, 72%, 58%)
HSVhsv(250, 69%, 88%)
CMYKcmyk(57.8%, 69.3%, 0%, 11.8%)
CIE-LABlab(41.41, 52.06, -75.64)
CIE-LCHlch(41.41, 91.83, 304.54°)
OKLaboklab(51.75% 0.0499 -0.2178)
OKLCHoklch(51.75% 0.223 282.9)
XYZxyz(20.4338, 12.1241, 72.4830)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45E1 #C7E145
analogous
#4579E1 #5F45E1 #AD45E1
triadic
#5F45E1 #E15F45 #45E15F
tetradic
#5F45E1 #E14579 #C7E145 #45E1AD
square
#5F45E1 #E14579 #C7E145 #45E1AD
split-complementary
#5F45E1 #E1AD45 #79E145
monochromatic
#2C1894 #3C20C8 #5F45E1 #8C7AE9 #BAAEF2

Accessibility & contrast

On white

6.13
#5F45E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5F45E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45E1
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45E1#FFFFFF#000000##FFFFFF
##5F45E11.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#0E6F8E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f45e1;
/* rgb */ color: rgb(95, 69, 225);
/* oklch */ color: oklch(51.7% 0.223 282.9);
Tailwind
colors: {
  custom: {
    50: '#997bec',
    500: '#5f45e1',
    950: '#000000',
  },
}
SCSS
$custom: #5f45e1;
$custom-light: #997bec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45e1",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 250,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.51747,
    "c": 0.22349,
    "h": 282.9
  },
  "luminance": 0.12125
}

Semantic roles & 50–950 ramp

primary
#5F45E1
secondary
#D6E0A2
accent
#EF39D1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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