#4A2498#4A2498

#4A2498 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.175 H 290.9°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4A2498
RGBrgb(74, 36, 152)
HSLhsl(260, 62%, 37%)
HSVhsv(260, 76%, 60%)
CMYKcmyk(51.3%, 76.3%, 0%, 40.4%)
CIE-LABlab(26.69, 44.90, -56.80)
CIE-LCHlch(26.69, 72.41, 308.33°)
OKLaboklab(38.82% 0.0622 -0.1631)
OKLCHoklch(38.82% 0.175 290.9)
XYZxyz(9.1208, 4.9842, 30.1811)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2498 #729824
analogous
#243898 #4A2498 #842498
triadic
#4A2498 #984A24 #24984A
tetradic
#4A2498 #982438 #729824 #249884
square
#4A2498 #982438 #729824 #249884
split-complementary
#4A2498 #988424 #389824
monochromatic
#1A0D35 #321867 #4A2498 #6230C9 #865ED9

Accessibility & contrast

On white

10.52
#4A2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4A2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2498
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2498#FFFFFF#000000##FFFFFF
##4A24981.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#2F445C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a2498;
/* rgb */ color: rgb(74, 36, 152);
/* oklch */ color: oklch(38.8% 0.175 290.9);
Tailwind
colors: {
  custom: {
    50: '#8563b7',
    500: '#4a2498',
    950: '#000000',
  },
}
SCSS
$custom: #4a2498;
$custom-light: #8563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2498",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 259.655,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38816,
    "c": 0.17459,
    "h": 290.9
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#4A2498
secondary
#9DBE5A
accent
#E543B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4A2498

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

Preview Lab → · Contrast checker → · Palette generator →

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