#5F41DB#5F41DB

#5F41DB is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.7% C 0.221 H 284.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5F41DB
RGBrgb(95, 65, 219)
HSLhsl(252, 68%, 56%)
HSVhsv(252, 70%, 86%)
CMYKcmyk(56.6%, 70.3%, 0%, 14.1%)
CIE-LABlab(40.13, 52.43, -74.33)
CIE-LCHlch(40.13, 90.96, 305.20°)
OKLaboklab(50.67% 0.0541 -0.214)
OKLCHoklch(50.67% 0.221 284.2)
XYZxyz(19.3919, 11.3268, 68.1685)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41DB #BDDB41
analogous
#4170DB #5F41DB #AC41DB
triadic
#5F41DB #DB5F41 #41DB5F
tetradic
#5F41DB #DB4170 #BDDB41 #41DBAC
square
#5F41DB #DB4170 #BDDB41 #41DBAC
split-complementary
#5F41DB #DBAC41 #70DB41
monochromatic
#2F1A88 #4123BB #5F41DB #8A74E5 #B6A8EE

Accessibility & contrast

On white

6.43
#5F41DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F41DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41DB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41DB#FFFFFF#000000##FFFFFF
##5F41DB1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#005AD8
Tritanopia (blue-blind)
#1E6A8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f41db;
/* rgb */ color: rgb(95, 65, 219);
/* oklch */ color: oklch(50.7% 0.221 284.2);
Tailwind
colors: {
  custom: {
    50: '#9978e7',
    500: '#5f41db',
    950: '#000000',
  },
}
SCSS
$custom: #5f41db;
$custom-light: #9978e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41db",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 251.688,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5067,
    "c": 0.22071,
    "h": 284.2
  },
  "luminance": 0.11328
}

Semantic roles & 50–950 ramp

primary
#5F41DB
secondary
#CFDC9C
accent
#EB3DC9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F41DB

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

Preview Lab → · Contrast checker → · Palette generator →

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