#5E4F8D#5E4F8D

#5E4F8D is a mid, moderate violet. Relative luminance 0.099; OKLCH L 47.1% C 0.099 H 293.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5E4F8D
RGBrgb(94, 79, 141)
HSLhsl(255, 28%, 43%)
HSVhsv(255, 44%, 55%)
CMYKcmyk(33.3%, 44%, 0%, 44.7%)
CIE-LABlab(37.65, 21.09, -32.30)
CIE-LCHlch(37.65, 38.58, 303.13°)
OKLaboklab(47.09% 0.0392 -0.0907)
OKLCHoklch(47.09% 0.099 293.4)
XYZxyz(12.2186, 9.8945, 26.4602)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4F8D #7E8D4F
analogous
#4F5F8D #5E4F8D #7D4F8D
triadic
#5E4F8D #8D5E4F #4F8D5E
tetradic
#5E4F8D #8D4F5F #7E8D4F #4F8D7D
square
#5E4F8D #8D4F5F #7E8D4F #4F8D7D
split-complementary
#5E4F8D #8D7D4F #5F8D4F
monochromatic
#2A233F #443966 #5E4F8D #7C6CAD #9F94C3

Accessibility & contrast

On white

7.05
#5E4F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5E4F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E4F8D
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4F8D#FFFFFF#000000##FFFFFF
##5E4F8D1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C598F
Deuteranopia (green-blind)
#3E588B
Tritanopia (blue-blind)
#535A67
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e4f8d;
/* rgb */ color: rgb(94, 79, 141);
/* oklch */ color: oklch(47.1% 0.099 293.4);
Tailwind
colors: {
  custom: {
    50: '#8e80ae',
    500: '#5e4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e4f8d;
$custom-light: #8e80ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4f8d",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 254.516,
    "s": 28.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47093,
    "c": 0.09876,
    "h": 293.4
  },
  "luminance": 0.09895
}

Semantic roles & 50–950 ramp

primary
#5E4F8D
secondary
#A6AF88
accent
#C463AD
background
#F8F7FA
surface
#F0EEF4
border
#CBC9CE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5E4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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