#4A2A88#4A2A88

#4A2A88 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.148 H 293.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4A2A88
RGBrgb(74, 42, 136)
HSLhsl(260, 53%, 35%)
HSVhsv(260, 69%, 53%)
CMYKcmyk(45.6%, 69.1%, 0%, 46.7%)
CIE-LABlab(26.42, 37.15, -47.35)
CIE-LCHlch(26.42, 60.19, 308.12°)
OKLaboklab(38.19% 0.0599 -0.1354)
OKLCHoklch(38.19% 0.148 293.8)
XYZxyz(8.0947, 4.8891, 23.8050)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A88 #68882A
analogous
#2A3988 #4A2A88 #792A88
triadic
#4A2A88 #884A2A #2A884A
tetradic
#4A2A88 #882A39 #68882A #2A8879
square
#4A2A88 #882A39 #68882A #2A8879
split-complementary
#4A2A88 #88792A #39882A
monochromatic
#170D2A #311C59 #4A2A88 #6338B7 #855FCE

Accessibility & contrast

On white

10.62
#4A2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4A2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A88
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A88#FFFFFF#000000##FFFFFF
##4A2A881.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#384155
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2a88;
/* rgb */ color: rgb(74, 42, 136);
/* oklch */ color: oklch(38.2% 0.148 293.8);
Tailwind
colors: {
  custom: {
    50: '#8266ab',
    500: '#4a2a88',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a88;
$custom-light: #8266ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a88",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 260.426,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38187,
    "c": 0.14807,
    "h": 293.8
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#4A2A88
secondary
#95B35B
accent
#DC4CAB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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