#5F45DC#5F45DC

#5F45DC is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.3% C 0.218 H 283.5°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5F45DC
RGBrgb(95, 69, 220)
HSLhsl(250, 68%, 57%)
HSVhsv(250, 69%, 86%)
CMYKcmyk(56.8%, 68.6%, 0%, 13.7%)
CIE-LABlab(40.99, 50.58, -73.49)
CIE-LCHlch(40.99, 89.22, 304.54°)
OKLaboklab(51.31% 0.0508 -0.2115)
OKLCHoklch(51.31% 0.218 283.5)
XYZxyz(19.7617, 11.8552, 68.9432)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45DC #C2DC45
analogous
#4577DC #5F45DC #AB45DC
triadic
#5F45DC #DC5F45 #45DC5F
tetradic
#5F45DC #DC4577 #C2DC45 #45DCAB
square
#5F45DC #DC4577 #C2DC45 #45DCAB
split-complementary
#5F45DC #DCAB45 #77DC45
monochromatic
#2E1A8C #3F24C0 #5F45DC #8B79E6 #B8ACEF

Accessibility & contrast

On white

6.23
#5F45DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5F45DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45DC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45DC#FFFFFF#000000##FFFFFF
##5F45DC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E1
Deuteranopia (green-blind)
#005CD9
Tritanopia (blue-blind)
#1B6D8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f45dc;
/* rgb */ color: rgb(95, 69, 220);
/* oklch */ color: oklch(51.3% 0.218 283.5);
Tailwind
colors: {
  custom: {
    50: '#997be8',
    500: '#5f45dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f45dc;
$custom-light: #997be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45dc",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 250.331,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5131,
    "c": 0.21754,
    "h": 283.5
  },
  "luminance": 0.11856
}

Semantic roles & 50–950 ramp

primary
#5F45DC
secondary
#D3DDA0
accent
#EB3DCD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45DC

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

Preview Lab → · Contrast checker → · Palette generator →

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