#5F45D9#5F45D9

#5F45D9 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.0% C 0.214 H 283.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5F45D9
RGBrgb(95, 69, 217)
HSLhsl(251, 66%, 56%)
HSVhsv(251, 68%, 85%)
CMYKcmyk(56.2%, 68.2%, 0%, 14.9%)
CIE-LABlab(40.73, 49.70, -72.19)
CIE-LCHlch(40.73, 87.64, 304.54°)
OKLaboklab(51.05% 0.0513 -0.2077)
OKLCHoklch(51.05% 0.214 283.9)
XYZxyz(19.3680, 11.6977, 66.8695)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45D9 #BFD945
analogous
#4575D9 #5F45D9 #A945D9
triadic
#5F45D9 #D95F45 #45D95F
tetradic
#5F45D9 #D94575 #BFD945 #45D9A9
square
#5F45D9 #D94575 #BFD945 #45D9A9
split-complementary
#5F45D9 #D9A945 #75D945
monochromatic
#2F1C88 #4026BB #5F45D9 #8B78E3 #B6ABEE

Accessibility & contrast

On white

6.29
#5F45D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5F45D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45D9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45D9#FFFFFF#000000##FFFFFF
##5F45D91.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#216C8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f45d9;
/* rgb */ color: rgb(95, 69, 217);
/* oklch */ color: oklch(51.0% 0.214 283.9);
Tailwind
colors: {
  custom: {
    50: '#987be6',
    500: '#5f45d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f45d9;
$custom-light: #987be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45d9",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 250.541,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5105,
    "c": 0.21394,
    "h": 283.9
  },
  "luminance": 0.11699
}

Semantic roles & 50–950 ramp

primary
#5F45D9
secondary
#D1DB9E
accent
#E93FCB
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45D9

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

Preview Lab → · Contrast checker → · Palette generator →

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