#5F42DA#5F42DA

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

Color values

HEX#5F42DA
RGBrgb(95, 66, 218)
HSLhsl(251, 67%, 56%)
HSVhsv(251, 70%, 85%)
CMYKcmyk(56.4%, 69.7%, 0%, 14.5%)
CIE-LABlab(40.23, 51.61, -73.58)
CIE-LCHlch(40.23, 89.88, 305.04°)
OKLaboklab(50.72% 0.0535 -0.2118)
OKLCHoklch(50.72% 0.218 284.2)
XYZxyz(19.3186, 11.3901, 67.4966)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F42DA #BDDA42
analogous
#4271DA #5F42DA #AB42DA
triadic
#5F42DA #DA5F42 #42DA5F
tetradic
#5F42DA #DA4271 #BDDA42 #42DAAB
square
#5F42DA #DA4271 #BDDA42 #42DAAB
split-complementary
#5F42DA #DAAB42 #71DA42
monochromatic
#2F1A87 #4124BA #5F42DA #8A75E4 #B6A8EE

Accessibility & contrast

On white

6.41
#5F42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5F42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F42DA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F42DA#FFFFFF#000000##FFFFFF
##5F42DA1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DF
Deuteranopia (green-blind)
#005AD7
Tritanopia (blue-blind)
#206A89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f42da;
/* rgb */ color: rgb(95, 66, 218);
/* oklch */ color: oklch(50.7% 0.218 284.2);
Tailwind
colors: {
  custom: {
    50: '#9979e7',
    500: '#5f42da',
    950: '#000000',
  },
}
SCSS
$custom: #5f42da;
$custom-light: #9979e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f42da",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 251.447,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50718,
    "c": 0.21845,
    "h": 284.2
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

primary
#5F42DA
secondary
#CFDB9C
accent
#EA3EC9
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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