#4A2A82#4A2A82

#4A2A82 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.140 H 295.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#4A2A82
RGBrgb(74, 42, 130)
HSLhsl(262, 51%, 34%)
HSVhsv(262, 68%, 51%)
CMYKcmyk(43.1%, 67.7%, 0%, 49%)
CIE-LABlab(25.93, 35.42, -44.39)
CIE-LCHlch(25.93, 56.79, 308.59°)
OKLaboklab(37.69% 0.0607 -0.1267)
OKLCHoklch(37.69% 0.14 295.6)
XYZxyz(7.6802, 4.7233, 21.6218)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A82 #62822A
analogous
#2A3682 #4A2A82 #762A82
triadic
#4A2A82 #824A2A #2A824A
tetradic
#4A2A82 #822A36 #62822A #2A8276
square
#4A2A82 #822A36 #62822A #2A8276
split-complementary
#4A2A82 #82762A #36822A
monochromatic
#150C25 #301B54 #4A2A82 #6439B0 #845CCA

Accessibility & contrast

On white

10.80
#4A2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4A2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A82
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A82#FFFFFF#000000##FFFFFF
##4A2A821.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#3B3F52
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a2a82;
/* rgb */ color: rgb(74, 42, 130);
/* oklch */ color: oklch(37.7% 0.140 295.6);
Tailwind
colors: {
  custom: {
    50: '#8166a7',
    500: '#4a2a82',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a82;
$custom-light: #8166a7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a82",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 261.818,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37686,
    "c": 0.14049,
    "h": 295.6
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#4A2A82
secondary
#90B058
accent
#DB4DA7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4A2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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