#5F40AE#5F40AE

#5F40AE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.8% C 0.167 H 291.6°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5F40AE
RGBrgb(95, 64, 174)
HSLhsl(257, 46%, 47%)
HSVhsv(257, 63%, 68%)
CMYKcmyk(45.4%, 63.2%, 0%, 31.8%)
CIE-LABlab(36.28, 39.90, -54.35)
CIE-LCHlch(36.28, 67.42, 306.28°)
OKLaboklab(46.78% 0.0615 -0.1553)
OKLCHoklch(46.78% 0.167 291.6)
XYZxyz(14.1906, 9.1552, 41.0556)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F40AE #8FAE40
analogous
#4058AE #5F40AE #9640AE
triadic
#5F40AE #AE5F40 #40AE5F
tetradic
#5F40AE #AE4058 #8FAE40 #40AE96
square
#5F40AE #AE4058 #8FAE40 #40AE96
split-complementary
#5F40AE #AE9640 #58AE40
monochromatic
#2E1F55 #473081 #5F40AE #8065C6 #A592D7

Accessibility & contrast

On white

7.42
#5F40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F40AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F40AE
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F40AE#FFFFFF#000000##FFFFFF
##5F40AE1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#485A71
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f40ae;
/* rgb */ color: rgb(95, 64, 174);
/* oklch */ color: oklch(46.8% 0.167 291.6);
Tailwind
colors: {
  custom: {
    50: '#9376c7',
    500: '#5f40ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f40ae;
$custom-light: #9376c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f40ae",
  "rgb": {
    "r": 95,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 256.909,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46775,
    "c": 0.16702,
    "h": 291.6
  },
  "luminance": 0.09156
}

Semantic roles & 50–950 ramp

primary
#5F40AE
secondary
#B2C288
accent
#D652B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #5F40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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