#5F45DF#5F45DF

#5F45DF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.221 H 283.1°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5F45DF
RGBrgb(95, 69, 223)
HSLhsl(250, 71%, 57%)
HSVhsv(250, 69%, 87%)
CMYKcmyk(57.4%, 69.1%, 0%, 12.5%)
CIE-LABlab(41.24, 51.47, -74.79)
CIE-LCHlch(41.24, 90.79, 304.54°)
OKLaboklab(51.57% 0.0503 -0.2153)
OKLCHoklch(51.57% 0.221 283.1)
XYZxyz(20.1626, 12.0156, 71.0545)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45DF #C5DF45
analogous
#4578DF #5F45DF #AC45DF
triadic
#5F45DF #DF5F45 #45DF5F
tetradic
#5F45DF #DF4578 #C5DF45 #45DFAC
square
#5F45DF #DF4578 #C5DF45 #45DFAC
split-complementary
#5F45DF #DFAC45 #78DF45
monochromatic
#2D1991 #3D22C5 #5F45DF #8C79E8 #B9ADF1

Accessibility & contrast

On white

6.17
#5F45DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5F45DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45DF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45DF#FFFFFF#000000##FFFFFF
##5F45DF1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#146E8D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f45df;
/* rgb */ color: rgb(95, 69, 223);
/* oklch */ color: oklch(51.6% 0.221 283.1);
Tailwind
colors: {
  custom: {
    50: '#997bea',
    500: '#5f45df',
    950: '#000000',
  },
}
SCSS
$custom: #5f45df;
$custom-light: #997bea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45df",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 250.13,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51572,
    "c": 0.22111,
    "h": 283.1
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#5F45DF
secondary
#D5DFA1
accent
#ED3ACF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45DF

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

Preview Lab → · Contrast checker → · Palette generator →

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