#5F45DB#5F45DB

#5F45DB is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.216 H 283.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#5F45DB
RGBrgb(95, 69, 219)
HSLhsl(250, 68%, 56%)
HSVhsv(250, 68%, 86%)
CMYKcmyk(56.6%, 68.5%, 0%, 14.1%)
CIE-LABlab(40.90, 50.29, -73.06)
CIE-LCHlch(40.90, 88.69, 304.54°)
OKLaboklab(51.22% 0.0509 -0.2103)
OKLCHoklch(51.22% 0.216 283.6)
XYZxyz(19.6297, 11.8024, 68.2478)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F45DB #C1DB45
analogous
#4576DB #5F45DB #AA45DB
triadic
#5F45DB #DB5F45 #45DB5F
tetradic
#5F45DB #DB4576 #C1DB45 #45DBAA
square
#5F45DB #DB4576 #C1DB45 #45DBAA
split-complementary
#5F45DB #DBAA45 #76DB45
monochromatic
#2E1B8B #3F25BE #5F45DB #8B78E5 #B7ACEF

Accessibility & contrast

On white

6.25
#5F45DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5F45DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F45DB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F45DB#FFFFFF#000000##FFFFFF
##5F45DB1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E0
Deuteranopia (green-blind)
#005BD8
Tritanopia (blue-blind)
#1D6C8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f45db;
/* rgb */ color: rgb(95, 69, 219);
/* oklch */ color: oklch(51.2% 0.216 283.6);
Tailwind
colors: {
  custom: {
    50: '#987be7',
    500: '#5f45db',
    950: '#000000',
  },
}
SCSS
$custom: #5f45db;
$custom-light: #987be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f45db",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 250.4,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51223,
    "c": 0.21634,
    "h": 283.6
  },
  "luminance": 0.11804
}

Semantic roles & 50–950 ramp

primary
#5F45DB
secondary
#D2DD9F
accent
#EA3DCC
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F45DB

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

Preview Lab → · Contrast checker → · Palette generator →

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