#5F43D7#5F43D7

#5F43D7 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.6% C 0.214 H 284.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5F43D7
RGBrgb(95, 67, 215)
HSLhsl(251, 65%, 55%)
HSVhsv(251, 69%, 84%)
CMYKcmyk(55.8%, 68.8%, 0%, 15.7%)
CIE-LABlab(40.17, 50.19, -71.96)
CIE-LCHlch(40.17, 87.74, 304.89°)
OKLaboklab(50.6% 0.0533 -0.207)
OKLCHoklch(50.6% 0.214 284.4)
XYZxyz(18.9885, 11.3524, 65.4675)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43D7 #BBD743
analogous
#4371D7 #5F43D7 #A943D7
triadic
#5F43D7 #D75F43 #43D75F
tetradic
#5F43D7 #D74371 #BBD743 #43D7A9
square
#5F43D7 #D74371 #BBD743 #43D7A9
split-complementary
#5F43D7 #D7A943 #71D743
monochromatic
#301C84 #4227B6 #5F43D7 #8A75E2 #B5A8EC

Accessibility & contrast

On white

6.42
#5F43D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5F43D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43D7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43D7#FFFFFF#000000##FFFFFF
##5F43D71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#005AD4
Tritanopia (blue-blind)
#246A88
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f43d7;
/* rgb */ color: rgb(95, 67, 215);
/* oklch */ color: oklch(50.6% 0.214 284.4);
Tailwind
colors: {
  custom: {
    50: '#9879e4',
    500: '#5f43d7',
    950: '#000000',
  },
}
SCSS
$custom: #5f43d7;
$custom-light: #9879e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43d7",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 215
  },
  "hsl": {
    "h": 251.351,
    "s": 64.912,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50595,
    "c": 0.21379,
    "h": 284.4
  },
  "luminance": 0.11354
}

Semantic roles & 50–950 ramp

primary
#5F43D7
secondary
#CEDA9C
accent
#E840C8
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F43D7

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

Preview Lab → · Contrast checker → · Palette generator →

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