#4A2A97#4A2A97

#4A2A97 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.167 H 290.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4A2A97
RGBrgb(74, 42, 151)
HSLhsl(258, 56%, 38%)
HSVhsv(258, 72%, 59%)
CMYKcmyk(51%, 72.2%, 0%, 40.8%)
CIE-LABlab(27.70, 41.52, -54.54)
CIE-LCHlch(27.70, 68.54, 307.28°)
OKLaboklab(39.5% 0.0571 -0.1565)
OKLCHoklch(39.5% 0.167 290.1)
XYZxyz(9.2363, 5.3458, 29.8173)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A97 #77972A
analogous
#2A4097 #4A2A97 #812A97
triadic
#4A2A97 #974A2A #2A974A
tetradic
#4A2A97 #972A40 #77972A #2A9781
square
#4A2A97 #972A40 #77972A #2A9781
split-complementary
#4A2A97 #97812A #40972A
monochromatic
#1B0F37 #331D67 #4A2A97 #6137C7 #8767D5

Accessibility & contrast

On white

10.15
#4A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A97
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A97#FFFFFF#000000##FFFFFF
##4A2A971.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#2F465D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4a2a97;
/* rgb */ color: rgb(74, 42, 151);
/* oklch */ color: oklch(39.5% 0.167 290.1);
Tailwind
colors: {
  custom: {
    50: '#8466b7',
    500: '#4a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a97;
$custom-light: #8466b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a97",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 257.615,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39501,
    "c": 0.16663,
    "h": 290.1
  },
  "luminance": 0.05346
}

Semantic roles & 50–950 ramp

primary
#4A2A97
secondary
#A1BB62
accent
#E048B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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