#5F43AC#5F43AC

#5F43AC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.1% C 0.160 H 291.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5F43AC
RGBrgb(95, 67, 172)
HSLhsl(256, 44%, 47%)
HSVhsv(256, 61%, 67%)
CMYKcmyk(44.8%, 61%, 0%, 32.5%)
CIE-LABlab(36.79, 37.58, -52.33)
CIE-LCHlch(36.79, 64.43, 305.68°)
OKLaboklab(47.1% 0.0582 -0.1494)
OKLCHoklch(47.1% 0.16 291.3)
XYZxyz(14.1708, 9.4253, 40.0943)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F43AC #90AC43
analogous
#435CAC #5F43AC #9443AC
triadic
#5F43AC #AC5F43 #43AC5F
tetradic
#5F43AC #AC435C #90AC43 #43AC94
square
#5F43AC #AC435C #90AC43 #43AC94
split-complementary
#5F43AC #AC9443 #5CAC43
monochromatic
#2E2154 #473280 #5F43AC #8168C4 #A594D5

Accessibility & contrast

On white

7.28
#5F43AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F43AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F43AC
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F43AC#FFFFFF#000000##FFFFFF
##5F43AC1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#485B71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f43ac;
/* rgb */ color: rgb(95, 67, 172);
/* oklch */ color: oklch(47.1% 0.160 291.3);
Tailwind
colors: {
  custom: {
    50: '#9278c5',
    500: '#5f43ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f43ac;
$custom-light: #9278c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f43ac",
  "rgb": {
    "r": 95,
    "g": 67,
    "b": 172
  },
  "hsl": {
    "h": 256,
    "s": 43.933,
    "l": 46.863
  },
  "oklch": {
    "l": 0.471,
    "c": 0.16031,
    "h": 291.3
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#5F43AC
secondary
#B2C18A
accent
#D454B2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5F43AC

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

Preview Lab → · Contrast checker → · Palette generator →

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