#4A2282#4A2282

#4A2282 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.151 H 297.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#4A2282
RGBrgb(74, 34, 130)
HSLhsl(265, 59%, 32%)
HSVhsv(265, 74%, 51%)
CMYKcmyk(43.1%, 73.8%, 0%, 49%)
CIE-LABlab(24.36, 39.78, -46.95)
CIE-LCHlch(24.36, 61.53, 310.27°)
OKLaboklab(36.56% 0.0694 -0.1342)
OKLCHoklch(36.56% 0.151 297.3)
XYZxyz(7.4243, 4.2115, 21.5365)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2282 #5A8222
analogous
#222A82 #4A2282 #7A2282
triadic
#4A2282 #824A22 #22824A
tetradic
#4A2282 #82222A #5A8222 #22827A
square
#4A2282 #82222A #5A8222 #22827A
split-complementary
#4A2282 #827A22 #2A8222
monochromatic
#130921 #2E1551 #4A2282 #662FB3 #844ED1

Accessibility & contrast

On white

11.40
#4A2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4A2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2282
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2282#FFFFFF#000000##FFFFFF
##4A22821.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003980
Tritanopia (blue-blind)
#3C3A50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a2282;
/* rgb */ color: rgb(74, 34, 130);
/* oklch */ color: oklch(36.6% 0.151 297.3);
Tailwind
colors: {
  custom: {
    50: '#8261a7',
    500: '#4a2282',
    950: '#000000',
  },
}
SCSS
$custom: #4a2282;
$custom-light: #8261a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2282",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 265,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.15108,
    "h": 297.3
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#4A2282
secondary
#89B44C
accent
#E246A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2282

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

Preview Lab → · Contrast checker → · Palette generator →

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