#4A2AAF#4A2AAF

#4A2AAF is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.195 H 285.3°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4A2AAF
RGBrgb(74, 42, 175)
HSLhsl(254, 61%, 43%)
HSVhsv(254, 76%, 69%)
CMYKcmyk(57.7%, 76%, 0%, 31.4%)
CIE-LABlab(29.93, 48.53, -65.41)
CIE-LCHlch(29.93, 81.45, 306.57°)
OKLaboklab(41.76% 0.0514 -0.1884)
OKLCHoklch(41.76% 0.195 285.3)
XYZxyz(11.3875, 6.2062, 41.1470)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2AAF #8FAF2A
analogous
#2A4DAF #4A2AAF #8C2AAF
triadic
#4A2AAF #AF4A2A #2AAF4A
tetradic
#4A2AAF #AF2A4D #8FAF2A #2AAF8C
square
#4A2AAF #AF2A4D #8FAF2A #2AAF8C
split-complementary
#4A2AAF #AF8C2A #4DAF2A
monochromatic
#20124C #351E7E #4A2AAF #6644D2 #8F75DE

Accessibility & contrast

On white

9.37
#4A2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4A2AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2AAF
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2AAF#FFFFFF#000000##FFFFFF
##4A2AAF1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#15506B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a2aaf;
/* rgb */ color: rgb(74, 42, 175);
/* oklch */ color: oklch(41.8% 0.195 285.3);
Tailwind
colors: {
  custom: {
    50: '#8868c8',
    500: '#4a2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #4a2aaf;
$custom-light: #8868c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2aaf",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 254.436,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41756,
    "c": 0.19528,
    "h": 285.3
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#4A2AAF
secondary
#B1C66F
accent
#E443BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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