#4A277D#4A277D

#4A277D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.138 H 297.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4A277D
RGBrgb(74, 39, 125)
HSLhsl(264, 52%, 32%)
HSVhsv(264, 69%, 49%)
CMYKcmyk(40.8%, 68.8%, 0%, 51%)
CIE-LABlab(24.91, 35.70, -42.89)
CIE-LCHlch(24.91, 55.81, 309.78°)
OKLaboklab(36.83% 0.0648 -0.1223)
OKLCHoklch(36.83% 0.138 297.9)
XYZxyz(7.2503, 4.3874, 19.8629)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A277D #5A7D27
analogous
#272F7D #4A277D #75277D
triadic
#4A277D #7D4A27 #277D4A
tetradic
#4A277D #7D272F #5A7D27 #277D75
square
#4A277D #7D272F #5A7D27 #277D75
split-complementary
#4A277D #7D7527 #2F7D27
monochromatic
#130A20 #2E184E #4A277D #6636AC #8455CA

Accessibility & contrast

On white

11.18
#4A277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4A277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A277D
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A277D#FFFFFF#000000##FFFFFF
##4A277D1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#3E3B4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a277d;
/* rgb */ color: rgb(74, 39, 125);
/* oklch */ color: oklch(36.8% 0.138 297.9);
Tailwind
colors: {
  custom: {
    50: '#8164a3',
    500: '#4a277d',
    950: '#000000',
  },
}
SCSS
$custom: #4a277d;
$custom-light: #8164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a277d",
  "rgb": {
    "r": 74,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 264.419,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36828,
    "c": 0.1384,
    "h": 297.9
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#4A277D
secondary
#89AF51
accent
#DC4CA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A277D

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

Preview Lab → · Contrast checker → · Palette generator →

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