#5F43D8#5F43D8

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

Color values

HEX#5F43D8
RGBrgb(95, 67, 216)
HSLhsl(251, 66%, 55%)
HSVhsv(251, 69%, 85%)
CMYKcmyk(56%, 69%, 0%, 15.3%)
CIE-LABlab(40.25, 50.49, -72.40)
CIE-LCHlch(40.25, 88.26, 304.89°)
OKLaboklab(50.68% 0.0531 -0.2083)
OKLCHoklch(50.68% 0.215 284.3)
XYZxyz(19.1174, 11.4039, 66.1462)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43D8 #BCD843
analogous
#4371D8 #5F43D8 #A943D8
triadic
#5F43D8 #D85F43 #43D85F
tetradic
#5F43D8 #D84371 #BCD843 #43D8A9
square
#5F43D8 #D84371 #BCD843 #43D8A9
split-complementary
#5F43D8 #D8A943 #71D843
monochromatic
#2F1C85 #4126B8 #5F43D8 #8A76E3 #B5A8ED

Accessibility & contrast

On white

6.40
#5F43D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F43D8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43D8#FFFFFF#000000##FFFFFF
##5F43D81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#005AD5
Tritanopia (blue-blind)
#236A88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f43d8;
/* rgb */ color: rgb(95, 67, 216);
/* oklch */ color: oklch(50.7% 0.215 284.3);
Tailwind
colors: {
  custom: {
    50: '#9879e5',
    500: '#5f43d8',
    950: '#000000',
  },
}
SCSS
$custom: #5f43d8;
$custom-light: #9879e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43d8",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 216
  },
  "hsl": {
    "h": 251.275,
    "s": 65.639,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50681,
    "c": 0.21498,
    "h": 284.3
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F43D8

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

Preview Lab → · Contrast checker → · Palette generator →

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