#5F43D9#5F43D9

#5F43D9 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.8% C 0.216 H 284.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5F43D9
RGBrgb(95, 67, 217)
HSLhsl(251, 66%, 56%)
HSVhsv(251, 69%, 85%)
CMYKcmyk(56.2%, 69.1%, 0%, 14.9%)
CIE-LABlab(40.34, 50.78, -72.83)
CIE-LCHlch(40.34, 88.79, 304.88°)
OKLaboklab(50.77% 0.0529 -0.2096)
OKLCHoklch(50.77% 0.216 284.2)
XYZxyz(19.2470, 11.4558, 66.8292)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43D9 #BDD943
analogous
#4372D9 #5F43D9 #AA43D9
triadic
#5F43D9 #D95F43 #43D95F
tetradic
#5F43D9 #D94372 #BDD943 #43D9AA
square
#5F43D9 #D94372 #BDD943 #43D9AA
split-complementary
#5F43D9 #D9AA43 #72D943
monochromatic
#2F1B86 #4125B9 #5F43D9 #8A76E3 #B6A9EE

Accessibility & contrast

On white

6.38
#5F43D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5F43D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43D9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43D9#FFFFFF#000000##FFFFFF
##5F43D91.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#005AD6
Tritanopia (blue-blind)
#216B89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f43d9;
/* rgb */ color: rgb(95, 67, 217);
/* oklch */ color: oklch(50.8% 0.216 284.2);
Tailwind
colors: {
  custom: {
    50: '#987ae6',
    500: '#5f43d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f43d9;
$custom-light: #987ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43d9",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 217
  },
  "hsl": {
    "h": 251.2,
    "s": 66.372,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50768,
    "c": 0.21617,
    "h": 284.2
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#5F43D9
secondary
#CFDB9D
accent
#E93FC9
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F43D9

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

Preview Lab → · Contrast checker → · Palette generator →

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