#5F43D5#5F43D5

#5F43D5 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.4% C 0.211 H 284.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5F43D5
RGBrgb(95, 67, 213)
HSLhsl(252, 63%, 55%)
HSVhsv(252, 69%, 84%)
CMYKcmyk(55.4%, 68.5%, 0%, 16.5%)
CIE-LABlab(40.00, 49.60, -71.09)
CIE-LCHlch(40.00, 86.69, 304.91°)
OKLaboklab(50.42% 0.0536 -0.2045)
OKLCHoklch(50.42% 0.211 284.7)
XYZxyz(18.7331, 11.2502, 64.1223)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43D5 #B9D543
analogous
#4370D5 #5F43D5 #A843D5
triadic
#5F43D5 #D55F43 #43D55F
tetradic
#5F43D5 #D54370 #B9D543 #43D5A8
square
#5F43D5 #D54370 #B9D543 #43D5A8
split-complementary
#5F43D5 #D5A843 #70D543
monochromatic
#301D81 #4328B3 #5F43D5 #8A75E0 #B4A7EB

Accessibility & contrast

On white

6.46
#5F43D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5F43D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43D5
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43D5#FFFFFF#000000##FFFFFF
##5F43D51.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#005AD2
Tritanopia (blue-blind)
#276987
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f43d5;
/* rgb */ color: rgb(95, 67, 213);
/* oklch */ color: oklch(50.4% 0.211 284.7);
Tailwind
colors: {
  custom: {
    50: '#9879e3',
    500: '#5f43d5',
    950: '#000000',
  },
}
SCSS
$custom: #5f43d5;
$custom-light: #9879e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43d5",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 213
  },
  "hsl": {
    "h": 251.507,
    "s": 63.478,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50422,
    "c": 0.21139,
    "h": 284.7
  },
  "luminance": 0.11251
}

Semantic roles & 50–950 ramp

primary
#5F43D5
secondary
#CDD99B
accent
#E741C7
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F43D5

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

Preview Lab → · Contrast checker → · Palette generator →

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