#4A2579#4A2579

#4A2579 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.136 H 299.8°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#4A2579
RGBrgb(74, 37, 121)
HSLhsl(266, 53%, 31%)
HSVhsv(266, 69%, 47%)
CMYKcmyk(38.8%, 69.4%, 0%, 52.5%)
CIE-LABlab(24.19, 35.70, -41.52)
CIE-LCHlch(24.19, 54.76, 310.69°)
OKLaboklab(36.21% 0.0677 -0.1183)
OKLCHoklch(36.21% 0.136 299.8)
XYZxyz(6.9359, 4.1594, 18.5229)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2579 #547925
analogous
#252A79 #4A2579 #742579
triadic
#4A2579 #794A25 #25794A
tetradic
#4A2579 #79252A #547925 #257974
square
#4A2579 #79252A #547925 #257974
split-complementary
#4A2579 #797425 #2A7925
monochromatic
#11081B #2D174A #4A2579 #6733A8 #854FC9

Accessibility & contrast

On white

11.46
#4A2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4A2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2579
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2579#FFFFFF#000000##FFFFFF
##4A25791.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#3F384B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a2579;
/* rgb */ color: rgb(74, 37, 121);
/* oklch */ color: oklch(36.2% 0.136 299.8);
Tailwind
colors: {
  custom: {
    50: '#8162a0',
    500: '#4a2579',
    950: '#000000',
  },
}
SCSS
$custom: #4a2579;
$custom-light: #8162a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2579",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 266.429,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3621,
    "c": 0.13626,
    "h": 299.8
  },
  "luminance": 0.04159
}

Semantic roles & 50–950 ramp

primary
#4A2579
secondary
#82AB4E
accent
#DD4B9D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4A2579

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

Preview Lab → · Contrast checker → · Palette generator →

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