#5F45DD#5F45DD

#5F45DD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.4% C 0.219 H 283.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5F45DD
RGBrgb(95, 69, 221)
HSLhsl(250, 69%, 57%)
HSVhsv(250, 69%, 87%)
CMYKcmyk(57%, 68.8%, 0%, 13.3%)
CIE-LABlab(41.07, 50.88, -73.92)
CIE-LCHlch(41.07, 89.74, 304.54°)
OKLaboklab(51.4% 0.0506 -0.2128)
OKLCHoklch(51.4% 0.219 283.4)
XYZxyz(19.8946, 11.9083, 69.6428)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45DD #C3DD45
analogous
#4577DD #5F45DD #AB45DD
triadic
#5F45DD #DD5F45 #45DD5F
tetradic
#5F45DD #DD4577 #C3DD45 #45DDAB
square
#5F45DD #DD4577 #C3DD45 #45DDAB
split-complementary
#5F45DD #DDAB45 #77DD45
monochromatic
#2E1A8E #3E23C1 #5F45DD #8C79E6 #B8ACF0

Accessibility & contrast

On white

6.21
#5F45DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5F45DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45DD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45DD#FFFFFF#000000##FFFFFF
##5F45DD1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E2
Deuteranopia (green-blind)
#005CDA
Tritanopia (blue-blind)
#196D8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f45dd;
/* rgb */ color: rgb(95, 69, 221);
/* oklch */ color: oklch(51.4% 0.219 283.4);
Tailwind
colors: {
  custom: {
    50: '#997be9',
    500: '#5f45dd',
    950: '#000000',
  },
}
SCSS
$custom: #5f45dd;
$custom-light: #997be9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45dd",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 221
  },
  "hsl": {
    "h": 250.263,
    "s": 69.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51397,
    "c": 0.21874,
    "h": 283.4
  },
  "luminance": 0.1191
}

Semantic roles & 50–950 ramp

primary
#5F45DD
secondary
#D3DEA0
accent
#EC3CCE
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45DD

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

Preview Lab → · Contrast checker → · Palette generator →

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