#4A2082#4A2082

#4A2082 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.154 H 297.7°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4A2082
RGBrgb(74, 32, 130)
HSLhsl(266, 60%, 32%)
HSVhsv(266, 75%, 51%)
CMYKcmyk(43.1%, 75.4%, 0%, 49%)
CIE-LABlab(24.00, 40.78, -47.53)
CIE-LCHlch(24.00, 62.63, 310.63°)
OKLaboklab(36.31% 0.0714 -0.1359)
OKLCHoklch(36.31% 0.154 297.7)
XYZxyz(7.3688, 4.1004, 21.5180)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2082 #588220
analogous
#202782 #4A2082 #7B2082
triadic
#4A2082 #824A20 #20824A
tetradic
#4A2082 #822027 #588220 #20827B
square
#4A2082 #822027 #588220 #20827B
split-complementary
#4A2082 #827B20 #278220
monochromatic
#120820 #2E1451 #4A2082 #662CB3 #844AD2

Accessibility & contrast

On white

11.54
#4A2082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A2082 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2082
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2082#FFFFFF#000000##FFFFFF
##4A20821.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#3C394F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a2082;
/* rgb */ color: rgb(74, 32, 130);
/* oklch */ color: oklch(36.3% 0.154 297.7);
Tailwind
colors: {
  custom: {
    50: '#8260a7',
    500: '#4a2082',
    950: '#000000',
  },
}
SCSS
$custom: #4a2082;
$custom-light: #8260a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2082",
  "rgb": {
    "r": 74,
    "g": 32,
    "b": 130
  },
  "hsl": {
    "h": 265.714,
    "s": 60.494,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36308,
    "c": 0.15352,
    "h": 297.7
  },
  "luminance": 0.04101
}

Semantic roles & 50–950 ramp

primary
#4A2082
secondary
#87B549
accent
#E4449F
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4A2082

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

Preview Lab → · Contrast checker → · Palette generator →

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