#4A2280#4A2280

#4A2280 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.149 H 298.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4A2280
RGBrgb(74, 34, 128)
HSLhsl(266, 58%, 32%)
HSVhsv(266, 73%, 50%)
CMYKcmyk(42.2%, 73.4%, 0%, 49.8%)
CIE-LABlab(24.19, 39.23, -45.96)
CIE-LCHlch(24.19, 60.43, 310.48°)
OKLaboklab(36.39% 0.0698 -0.1313)
OKLCHoklch(36.39% 0.149 298)
XYZxyz(7.2913, 4.1583, 20.8364)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2280 #588022
analogous
#222980 #4A2280 #792280
triadic
#4A2280 #804A22 #22804A
tetradic
#4A2280 #802229 #588022 #228079
square
#4A2280 #802229 #588022 #228079
split-complementary
#4A2280 #807922 #298022
monochromatic
#12081F #2E1550 #4A2280 #662FB0 #844DD0

Accessibility & contrast

On white

11.47
#4A2280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2280
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2280#FFFFFF#000000##FFFFFF
##4A22801.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#3D394E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a2280;
/* rgb */ color: rgb(74, 34, 128);
/* oklch */ color: oklch(36.4% 0.149 298.0);
Tailwind
colors: {
  custom: {
    50: '#8261a6',
    500: '#4a2280',
    950: '#000000',
  },
}
SCSS
$custom: #4a2280;
$custom-light: #8261a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2280",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 265.532,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.14871,
    "h": 298
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#4A2280
secondary
#87B24B
accent
#E1479F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A2280

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

Preview Lab → · Contrast checker → · Palette generator →

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