#4A2A90#4A2A90

#4A2A90 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.158 H 291.7°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4A2A90
RGBrgb(74, 42, 144)
HSLhsl(259, 55%, 36%)
HSVhsv(259, 71%, 56%)
CMYKcmyk(48.6%, 70.8%, 0%, 43.5%)
CIE-LABlab(27.09, 39.48, -51.22)
CIE-LCHlch(27.09, 64.67, 307.62°)
OKLaboklab(38.88% 0.0585 -0.1468)
OKLCHoklch(38.88% 0.158 291.7)
XYZxyz(8.6846, 5.1251, 26.9118)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A90 #70902A
analogous
#2A3D90 #4A2A90 #7D2A90
triadic
#4A2A90 #904A2A #2A904A
tetradic
#4A2A90 #902A3D #70902A #2A907D
square
#4A2A90 #902A3D #70902A #2A907D
split-complementary
#4A2A90 #907D2A #3D902A
monochromatic
#190E31 #321C61 #4A2A90 #6238BF #8663D1

Accessibility & contrast

On white

10.37
#4A2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4A2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A90
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A90#FFFFFF#000000##FFFFFF
##4A2A901.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004293
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#34445A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4a2a90;
/* rgb */ color: rgb(74, 42, 144);
/* oklch */ color: oklch(38.9% 0.158 291.7);
Tailwind
colors: {
  custom: {
    50: '#8366b1',
    500: '#4a2a90',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a90;
$custom-light: #8366b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a90",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 258.824,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38877,
    "c": 0.15804,
    "h": 291.7
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#4A2A90
secondary
#9CB75E
accent
#DE4AB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4A2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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