#5E5274#5E5274

#5E5274 is a mid, muted violet. Relative luminance 0.097; OKLCH L 46.4% C 0.056 H 300.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5E5274
RGBrgb(94, 82, 116)
HSLhsl(261, 17%, 39%)
HSVhsv(261, 29%, 45%)
CMYKcmyk(19%, 29.3%, 0%, 54.5%)
CIE-LABlab(37.25, 12.53, -17.58)
CIE-LCHlch(37.25, 21.59, 305.47°)
OKLaboklab(46.39% 0.0284 -0.0483)
OKLCHoklch(46.39% 0.056 300.4)
XYZxyz(10.7851, 9.6752, 17.8189)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5274 #687452
analogous
#525774 #5E5274 #6F5274
triadic
#5E5274 #745E52 #52745E
tetradic
#5E5274 #745257 #687452 #52746F
square
#5E5274 #745257 #687452 #52746F
split-complementary
#5E5274 #746F52 #577452
monochromatic
#241F2C #413950 #5E5274 #7B6C97 #9B90B0

Accessibility & contrast

On white

7.16
#5E5274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5E5274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E5274
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5274#FFFFFF#000000##FFFFFF
##5E52741.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5875
Deuteranopia (green-blind)
#4D5773
Tritanopia (blue-blind)
#5A575E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e5274;
/* rgb */ color: rgb(94, 82, 116);
/* oklch */ color: oklch(46.4% 0.056 300.4);
Tailwind
colors: {
  custom: {
    50: '#8c829c',
    500: '#5e5274',
    950: '#000000',
  },
}
SCSS
$custom: #5e5274;
$custom-light: #8c829c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5274",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 116
  },
  "hsl": {
    "h": 261.176,
    "s": 17.172,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46393,
    "c": 0.056,
    "h": 300.4
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#5E5274
secondary
#959E84
accent
#BA6E9F
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #5E5274

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

Preview Lab → · Contrast checker → · Palette generator →

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