#4A2080#4A2080

#4A2080 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.151 H 298.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#4A2080
RGBrgb(74, 32, 128)
HSLhsl(266, 60%, 31%)
HSVhsv(266, 75%, 50%)
CMYKcmyk(42.2%, 75%, 0%, 49.8%)
CIE-LABlab(23.83, 40.24, -46.55)
CIE-LCHlch(23.83, 61.53, 310.84°)
OKLaboklab(36.13% 0.0719 -0.133)
OKLCHoklch(36.13% 0.151 298.4)
XYZxyz(7.2358, 4.0473, 20.8179)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2080 #568020
analogous
#202680 #4A2080 #7A2080
triadic
#4A2080 #804A20 #20804A
tetradic
#4A2080 #802026 #568020 #20807A
square
#4A2080 #802026 #568020 #20807A
split-complementary
#4A2080 #807A20 #268020
monochromatic
#11081E #2E144F #4A2080 #662CB1 #8549D1

Accessibility & contrast

On white

11.61
#4A2080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4A2080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2080
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2080#FFFFFF#000000##FFFFFF
##4A20801.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#3D384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a2080;
/* rgb */ color: rgb(74, 32, 128);
/* oklch */ color: oklch(36.1% 0.151 298.4);
Tailwind
colors: {
  custom: {
    50: '#8260a6',
    500: '#4a2080',
    950: '#000000',
  },
}
SCSS
$custom: #4a2080;
$custom-light: #8260a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2080",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 266.25,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.1512,
    "h": 298.4
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#4A2080
secondary
#85B349
accent
#E3459E
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A2080

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

Preview Lab → · Contrast checker → · Palette generator →

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