#4A2298#4A2298

#4A2298 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.177 H 291.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4A2298
RGBrgb(74, 34, 152)
HSLhsl(260, 63%, 36%)
HSVhsv(260, 78%, 60%)
CMYKcmyk(51.3%, 77.6%, 0%, 40.4%)
CIE-LABlab(26.35, 45.87, -57.36)
CIE-LCHlch(26.35, 73.44, 308.65°)
OKLaboklab(38.58% 0.0639 -0.1647)
OKLCHoklch(38.58% 0.177 291.2)
XYZxyz(9.0619, 4.8665, 30.1615)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2298 #709822
analogous
#223598 #4A2298 #852298
triadic
#4A2298 #984A22 #22984A
tetradic
#4A2298 #982235 #709822 #229885
square
#4A2298 #982235 #709822 #229885
split-complementary
#4A2298 #988522 #359822
monochromatic
#190C34 #321766 #4A2298 #622DCA #865ADA

Accessibility & contrast

On white

10.64
#4A2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4A2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2298
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2298#FFFFFF#000000##FFFFFF
##4A22981.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#2F435C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2298;
/* rgb */ color: rgb(74, 34, 152);
/* oklch */ color: oklch(38.6% 0.177 291.2);
Tailwind
colors: {
  custom: {
    50: '#8562b7',
    500: '#4a2298',
    950: '#000000',
  },
}
SCSS
$custom: #4a2298;
$custom-light: #8562b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2298",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 260.339,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38579,
    "c": 0.17669,
    "h": 291.2
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#4A2298
secondary
#9CBE57
accent
#E641AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4A2298

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

Preview Lab → · Contrast checker → · Palette generator →

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