#4A405F#4A405F

#4A405F is a dark, muted violet. Relative luminance 0.059; OKLCH L 39.5% C 0.053 H 298.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4A405F
RGBrgb(74, 64, 95)
HSLhsl(259, 19%, 31%)
HSVhsv(259, 33%, 37%)
CMYKcmyk(22.1%, 32.6%, 0%, 62.7%)
CIE-LABlab(29.28, 11.59, -16.79)
CIE-LCHlch(29.28, 20.40, 304.62°)
OKLaboklab(39.49% 0.0254 -0.0463)
OKLCHoklch(39.49% 0.053 298.8)
XYZxyz(6.7225, 5.9488, 11.6183)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A405F #555F40
analogous
#40455F #4A405F #59405F
triadic
#4A405F #5F4A40 #405F4A
tetradic
#4A405F #5F4045 #555F40 #405F59
square
#4A405F #5F4045 #555F40 #405F59
split-complementary
#4A405F #5F5940 #455F40
monochromatic
#110F16 #2E273A #4A405F #665984 #8576A3

Accessibility & contrast

On white

9.59
#4A405F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4A405F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A405F
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A405F#FFFFFF#000000##FFFFFF
##4A405F1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394560
Deuteranopia (green-blind)
#3B455E
Tritanopia (blue-blind)
#46454B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a405f;
/* rgb */ color: rgb(74, 64, 95);
/* oklch */ color: oklch(39.5% 0.053 298.8);
Tailwind
colors: {
  custom: {
    50: '#7d748c',
    500: '#4a405f',
    950: '#000000',
  },
}
SCSS
$custom: #4a405f;
$custom-light: #7d748c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a405f",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 95
  },
  "hsl": {
    "h": 259.355,
    "s": 19.497,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39488,
    "c": 0.05281,
    "h": 298.8
  },
  "luminance": 0.05949
}

Semantic roles & 50–950 ramp

primary
#4A405F
secondary
#838F6C
accent
#BC6CA2
background
#F7F7F8
surface
#EEEDF0
border
#C9C8CB
text
#09080C
muted
#7B7B7D

Preview Lab

Preview with #4A405F

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

Preview Lab → · Contrast checker → · Palette generator →

#4A405F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva