#5F45DE#5F45DE

#5F45DE is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.5% C 0.220 H 283.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5F45DE
RGBrgb(95, 69, 222)
HSLhsl(250, 70%, 57%)
HSVhsv(250, 69%, 87%)
CMYKcmyk(57.2%, 68.9%, 0%, 12.9%)
CIE-LABlab(41.16, 51.18, -74.35)
CIE-LCHlch(41.16, 90.26, 304.54°)
OKLaboklab(51.48% 0.0504 -0.2141)
OKLCHoklch(51.48% 0.22 283.3)
XYZxyz(20.0282, 11.9618, 70.3466)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45DE #C4DE45
analogous
#4578DE #5F45DE #AC45DE
triadic
#5F45DE #DE5F45 #45DE5F
tetradic
#5F45DE #DE4578 #C4DE45 #45DEAC
square
#5F45DE #DE4578 #C4DE45 #45DEAC
split-complementary
#5F45DE #DEAC45 #78DE45
monochromatic
#2D198F #3E23C3 #5F45DE #8C79E7 #B8ADF0

Accessibility & contrast

On white

6.19
#5F45DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5F45DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45DE
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45DE#FFFFFF#000000##FFFFFF
##5F45DE1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E3
Deuteranopia (green-blind)
#005CDB
Tritanopia (blue-blind)
#176D8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f45de;
/* rgb */ color: rgb(95, 69, 222);
/* oklch */ color: oklch(51.5% 0.220 283.3);
Tailwind
colors: {
  custom: {
    50: '#997be9',
    500: '#5f45de',
    950: '#000000',
  },
}
SCSS
$custom: #5f45de;
$custom-light: #997be9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45de",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 222
  },
  "hsl": {
    "h": 250.196,
    "s": 69.863,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51484,
    "c": 0.21992,
    "h": 283.3
  },
  "luminance": 0.11963
}

Semantic roles & 50–950 ramp

primary
#5F45DE
secondary
#D4DFA0
accent
#ED3BCE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45DE

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

Preview Lab → · Contrast checker → · Palette generator →

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