#5F46DB#5F46DB

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

Color values

HEX#5F46DB
RGBrgb(95, 70, 219)
HSLhsl(250, 67%, 57%)
HSVhsv(250, 68%, 86%)
CMYKcmyk(56.6%, 68%, 0%, 14.1%)
CIE-LABlab(41.10, 49.74, -72.73)
CIE-LCHlch(41.10, 88.12, 304.37°)
OKLaboklab(51.37% 0.0501 -0.2093)
OKLCHoklch(51.37% 0.215 283.5)
XYZxyz(19.6917, 11.9265, 68.2685)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46DB #C2DB46
analogous
#4678DB #5F46DB #AA46DB
triadic
#5F46DB #DB5F46 #46DB5F
tetradic
#5F46DB #DB4678 #C2DB46 #46DBAA
square
#5F46DB #DB4678 #C2DB46 #46DBAA
split-complementary
#5F46DB #DBAA46 #78DB46
monochromatic
#2E1B8B #3F25BF #5F46DB #8B79E5 #B8ACEF

Accessibility & contrast

On white

6.20
#5F46DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5F46DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46DB
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46DB#FFFFFF#000000##FFFFFF
##5F46DB1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#1D6D8B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f46db;
/* rgb */ color: rgb(95, 70, 219);
/* oklch */ color: oklch(51.4% 0.215 283.5);
Tailwind
colors: {
  custom: {
    50: '#987be7',
    500: '#5f46db',
    950: '#000000',
  },
}
SCSS
$custom: #5f46db;
$custom-light: #987be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46db",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 250.067,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.21523,
    "h": 283.5
  },
  "luminance": 0.11928
}

Semantic roles & 50–950 ramp

primary
#5F46DB
secondary
#D3DDA0
accent
#EA3DCD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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