#4A2880#4A2880

#4A2880 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.141 H 296.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4A2880
RGBrgb(74, 40, 128)
HSLhsl(263, 52%, 33%)
HSVhsv(263, 69%, 50%)
CMYKcmyk(42.2%, 68.8%, 0%, 49.8%)
CIE-LABlab(25.36, 35.99, -44.06)
CIE-LCHlch(25.36, 56.89, 309.24°)
OKLaboklab(37.22% 0.0632 -0.1257)
OKLCHoklch(37.22% 0.141 296.7)
XYZxyz(7.4781, 4.5318, 20.8986)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2880 #5E8028
analogous
#283280 #4A2880 #762880
triadic
#4A2880 #804A28 #28804A
tetradic
#4A2880 #802832 #5E8028 #288076
square
#4A2880 #802832 #5E8028 #288076
split-complementary
#4A2880 #807628 #328028
monochromatic
#140B23 #2F1951 #4A2880 #6537AF #8458CB

Accessibility & contrast

On white

11.02
#4A2880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A2880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2880
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2880#FFFFFF#000000##FFFFFF
##4A28801.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#3C3D50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a2880;
/* rgb */ color: rgb(74, 40, 128);
/* oklch */ color: oklch(37.2% 0.141 296.7);
Tailwind
colors: {
  custom: {
    50: '#8164a6',
    500: '#4a2880',
    950: '#000000',
  },
}
SCSS
$custom: #4a2880;
$custom-light: #8164a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2880",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 263.182,
    "s": 52.381,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37222,
    "c": 0.14075,
    "h": 296.7
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#4A2880
secondary
#8CB054
accent
#DC4CA4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A2880

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

Preview Lab → · Contrast checker → · Palette generator →

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