#4A2295#4A2295

#4A2295 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.173 H 291.9°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4A2295
RGBrgb(74, 34, 149)
HSLhsl(261, 63%, 36%)
HSVhsv(261, 77%, 58%)
CMYKcmyk(50.3%, 77.2%, 0%, 41.6%)
CIE-LABlab(26.07, 45.04, -55.98)
CIE-LCHlch(26.07, 71.84, 308.82°)
OKLaboklab(38.29% 0.0647 -0.1607)
OKLCHoklch(38.29% 0.173 291.9)
XYZxyz(8.8194, 4.7695, 28.8839)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2295 #6D9522
analogous
#223395 #4A2295 #832295
triadic
#4A2295 #954A22 #22954A
tetradic
#4A2295 #952233 #6D9522 #229583
square
#4A2295 #952233 #6D9522 #229583
split-complementary
#4A2295 #958322 #339522
monochromatic
#190B31 #311763 #4A2295 #632DC7 #8558D9

Accessibility & contrast

On white

10.75
#4A2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4A2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2295
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2295#FFFFFF#000000##FFFFFF
##4A22951.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#31425A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2295;
/* rgb */ color: rgb(74, 34, 149);
/* oklch */ color: oklch(38.3% 0.173 291.9);
Tailwind
colors: {
  custom: {
    50: '#8562b5',
    500: '#4a2295',
    950: '#000000',
  },
}
SCSS
$custom: #4a2295;
$custom-light: #8562b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2295",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 260.87,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38293,
    "c": 0.17324,
    "h": 291.9
  },
  "luminance": 0.0477
}

Semantic roles & 50–950 ramp

primary
#4A2295
secondary
#99BD56
accent
#E642AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4A2295

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

Preview Lab → · Contrast checker → · Palette generator →

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