#5F43D2#5F43D2

#5F43D2 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.208 H 285.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5F43D2
RGBrgb(95, 67, 210)
HSLhsl(252, 61%, 54%)
HSVhsv(252, 68%, 82%)
CMYKcmyk(54.8%, 68.1%, 0%, 17.6%)
CIE-LABlab(39.75, 48.72, -69.78)
CIE-LCHlch(39.75, 85.10, 304.93°)
OKLaboklab(50.16% 0.0541 -0.2006)
OKLCHoklch(50.16% 0.208 285.1)
XYZxyz(18.3558, 11.0993, 62.1354)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43D2 #B6D243
analogous
#436FD2 #5F43D2 #A643D2
triadic
#5F43D2 #D25F43 #43D25F
tetradic
#5F43D2 #D2436F #B6D243 #43D2A6
square
#5F43D2 #D2436F #B6D243 #43D2A6
split-complementary
#5F43D2 #D2A643 #6FD243
monochromatic
#301E7D #442AAE #5F43D2 #8974DE #B3A6EA

Accessibility & contrast

On white

6.52
#5F43D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5F43D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43D2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43D2#FFFFFF#000000##FFFFFF
##5F43D21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#2B6885
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f43d2;
/* rgb */ color: rgb(95, 67, 210);
/* oklch */ color: oklch(50.2% 0.208 285.1);
Tailwind
colors: {
  custom: {
    50: '#9779e1',
    500: '#5f43d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f43d2;
$custom-light: #9779e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43d2",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 210
  },
  "hsl": {
    "h": 251.748,
    "s": 61.373,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50164,
    "c": 0.20779,
    "h": 285.1
  },
  "luminance": 0.111
}

Semantic roles & 50–950 ramp

primary
#5F43D2
secondary
#CBD79A
accent
#E443C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F43D2

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

Preview Lab → · Contrast checker → · Palette generator →

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