#5A4262#5A4262

#5A4262 is a dark, muted purple. Relative luminance 0.070; OKLCH L 41.8% C 0.060 H 317.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#5A4262
RGBrgb(90, 66, 98)
HSLhsl(285, 20%, 32%)
HSVhsv(285, 33%, 38%)
CMYKcmyk(8.2%, 32.7%, 0%, 61.6%)
CIE-LABlab(31.70, 16.85, -14.85)
CIE-LCHlch(31.70, 22.46, 318.61°)
OKLaboklab(41.78% 0.0442 -0.0405)
OKLCHoklch(41.78% 0.06 317.5)
XYZxyz(8.3690, 6.9521, 12.4539)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4262 #4A6242
analogous
#4A4262 #5A4262 #62425A
triadic
#5A4262 #625A42 #42625A
tetradic
#5A4262 #624A42 #4A6242 #425A62
square
#5A4262 #624A42 #4A6242 #425A62
split-complementary
#5A4262 #5A6242 #42624A
monochromatic
#171119 #38293D #5A4262 #7C5B87 #9A79A5

Accessibility & contrast

On white

8.79
#5A4262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A4262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4262
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4262#FFFFFF#000000##FFFFFF
##5A42621.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4963
Deuteranopia (green-blind)
#434B61
Tritanopia (blue-blind)
#5A464E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a4262;
/* rgb */ color: rgb(90, 66, 98);
/* oklch */ color: oklch(41.8% 0.060 317.5);
Tailwind
colors: {
  custom: {
    50: '#89768e',
    500: '#5a4262',
    950: '#000000',
  },
}
SCSS
$custom: #5a4262;
$custom-light: #89768e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4262",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 98
  },
  "hsl": {
    "h": 285,
    "s": 19.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41784,
    "c": 0.05996,
    "h": 317.5
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

primary
#5A4262
secondary
#77916F
accent
#BC6C80
background
#F8F7F8
surface
#F0EDF0
border
#CBC8CB
text
#0B080C
muted
#7C7B7D

Preview Lab

Preview with #5A4262

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

Preview Lab → · Contrast checker → · Palette generator →

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