#5F43BF#5F43BF

#5F43BF is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.184 H 287.9°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5F43BF
RGBrgb(95, 67, 191)
HSLhsl(254, 49%, 51%)
HSVhsv(254, 65%, 75%)
CMYKcmyk(50.3%, 64.9%, 0%, 25.1%)
CIE-LABlab(38.21, 43.13, -61.24)
CIE-LCHlch(38.21, 74.90, 305.16°)
OKLaboklab(48.58% 0.0567 -0.1756)
OKLCHoklch(48.58% 0.184 287.9)
XYZxyz(16.1277, 10.2081, 50.4007)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43BF #A3BF43
analogous
#4365BF #5F43BF #9D43BF
triadic
#5F43BF #BF5F43 #43BF5F
tetradic
#5F43BF #BF4365 #A3BF43 #43BF9D
square
#5F43BF #BF4365 #A3BF43 #43BF9D
split-complementary
#5F43BF #BF9D43 #65BF43
monochromatic
#322265 #483293 #5F43BF #8671CF #AD9EDE

Accessibility & contrast

On white

6.90
#5F43BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5F43BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F43BF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43BF#FFFFFF#000000##FFFFFF
##5F43BF1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#3D617B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f43bf;
/* rgb */ color: rgb(95, 67, 191);
/* oklch */ color: oklch(48.6% 0.184 287.9);
Tailwind
colors: {
  custom: {
    50: '#9579d3',
    500: '#5f43bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f43bf;
$custom-light: #9579d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43bf",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 191
  },
  "hsl": {
    "h": 253.548,
    "s": 49.206,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48582,
    "c": 0.18448,
    "h": 287.9
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#5F43BF
secondary
#BECA93
accent
#D94FBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F43BF

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

Preview Lab → · Contrast checker → · Palette generator →

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