#4A2079#4A2079

#4A2079 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.143 H 300.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4A2079
RGBrgb(74, 32, 121)
HSLhsl(268, 58%, 30%)
HSVhsv(268, 74%, 47%)
CMYKcmyk(38.8%, 73.6%, 0%, 52.5%)
CIE-LABlab(23.23, 38.36, -43.08)
CIE-LCHlch(23.23, 57.68, 311.69°)
OKLaboklab(35.53% 0.0733 -0.1228)
OKLCHoklch(35.53% 0.143 300.8)
XYZxyz(6.7909, 3.8693, 18.4745)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2079 #4F7920
analogous
#202279 #4A2079 #772079
triadic
#4A2079 #794A20 #20794A
tetradic
#4A2079 #792022 #4F7920 #207977
square
#4A2079 #792022 #4F7920 #207977
split-complementary
#4A2079 #797720 #227920
monochromatic
#0F0618 #2C1349 #4A2079 #682DA9 #8645CE

Accessibility & contrast

On white

11.84
#4A2079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A2079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2079
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2079#FFFFFF#000000##FFFFFF
##4A20791.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#40364A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a2079;
/* rgb */ color: rgb(74, 32, 121);
/* oklch */ color: oklch(35.5% 0.143 300.8);
Tailwind
colors: {
  custom: {
    50: '#815fa0',
    500: '#4a2079',
    950: '#000000',
  },
}
SCSS
$custom: #4a2079;
$custom-light: #815fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2079",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 268.315,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.35526,
    "c": 0.14304,
    "h": 300.8
  },
  "luminance": 0.03869
}

Semantic roles & 50–950 ramp

primary
#4A2079
secondary
#7DAC49
accent
#E14698
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4A2079

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

Preview Lab → · Contrast checker → · Palette generator →

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