#5F45DA#5F45DA

#5F45DA is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.1% C 0.215 H 283.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5F45DA
RGBrgb(95, 69, 218)
HSLhsl(250, 67%, 56%)
HSVhsv(250, 68%, 85%)
CMYKcmyk(56.4%, 68.3%, 0%, 14.5%)
CIE-LABlab(40.82, 49.99, -72.62)
CIE-LCHlch(40.82, 88.17, 304.54°)
OKLaboklab(51.14% 0.0511 -0.209)
OKLCHoklch(51.14% 0.215 283.7)
XYZxyz(19.4984, 11.7499, 67.5566)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45DA #C0DA45
analogous
#4576DA #5F45DA #AA45DA
triadic
#5F45DA #DA5F45 #45DA5F
tetradic
#5F45DA #DA4576 #C0DA45 #45DAAA
square
#5F45DA #DA4576 #C0DA45 #45DAAA
split-complementary
#5F45DA #DAAA45 #76DA45
monochromatic
#2F1B89 #4025BC #5F45DA #8B78E4 #B7ABEE

Accessibility & contrast

On white

6.27
#5F45DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5F45DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45DA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45DA#FFFFFF#000000##FFFFFF
##5F45DA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DF
Deuteranopia (green-blind)
#005BD7
Tritanopia (blue-blind)
#1F6C8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f45da;
/* rgb */ color: rgb(95, 69, 218);
/* oklch */ color: oklch(51.1% 0.215 283.7);
Tailwind
colors: {
  custom: {
    50: '#987be7',
    500: '#5f45da',
    950: '#000000',
  },
}
SCSS
$custom: #5f45da;
$custom-light: #987be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45da",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 218
  },
  "hsl": {
    "h": 250.47,
    "s": 66.816,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51137,
    "c": 0.21515,
    "h": 283.7
  },
  "luminance": 0.11751
}

Semantic roles & 50–950 ramp

primary
#5F45DA
secondary
#D1DC9F
accent
#EA3ECC
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45DA

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

Preview Lab → · Contrast checker → · Palette generator →

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