#4A2497#4A2497

#4A2497 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.173 H 291.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4A2497
RGBrgb(74, 36, 151)
HSLhsl(260, 61%, 37%)
HSVhsv(260, 76%, 59%)
CMYKcmyk(51%, 76.2%, 0%, 40.8%)
CIE-LABlab(26.60, 44.62, -56.34)
CIE-LCHlch(26.60, 71.87, 308.38°)
OKLaboklab(38.72% 0.0625 -0.1618)
OKLCHoklch(38.72% 0.173 291.1)
XYZxyz(9.0392, 4.9516, 29.7516)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2497 #719724
analogous
#243897 #4A2497 #842497
triadic
#4A2497 #974A24 #24974A
tetradic
#4A2497 #972438 #719724 #249784
square
#4A2497 #972438 #719724 #249784
split-complementary
#4A2497 #978424 #389724
monochromatic
#1A0C34 #321866 #4A2497 #6230C8 #865DD8

Accessibility & contrast

On white

10.55
#4A2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4A2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2497
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2497#FFFFFF#000000##FFFFFF
##4A24971.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#30435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a2497;
/* rgb */ color: rgb(74, 36, 151);
/* oklch */ color: oklch(38.7% 0.173 291.1);
Tailwind
colors: {
  custom: {
    50: '#8563b7',
    500: '#4a2497',
    950: '#000000',
  },
}
SCSS
$custom: #4a2497;
$custom-light: #8563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2497",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 259.826,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.17343,
    "h": 291.1
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#4A2497
secondary
#9CBD5A
accent
#E543AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4A2497

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

Preview Lab → · Contrast checker → · Palette generator →

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