#4A2297#4A2297

#4A2297 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.176 H 291.4°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#4A2297
RGBrgb(74, 34, 151)
HSLhsl(261, 63%, 36%)
HSVhsv(261, 77%, 59%)
CMYKcmyk(51%, 77.5%, 0%, 40.8%)
CIE-LABlab(26.26, 45.59, -56.90)
CIE-LCHlch(26.26, 72.91, 308.71°)
OKLaboklab(38.48% 0.0641 -0.1634)
OKLCHoklch(38.48% 0.176 291.4)
XYZxyz(8.9804, 4.8339, 29.7320)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2297 #6F9722
analogous
#223597 #4A2297 #852297
triadic
#4A2297 #974A22 #22974A
tetradic
#4A2297 #972235 #6F9722 #229785
square
#4A2297 #972235 #6F9722 #229785
split-complementary
#4A2297 #978522 #359722
monochromatic
#190C33 #321765 #4A2297 #622DC9 #855ADA

Accessibility & contrast

On white

10.68
#4A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2297
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2297#FFFFFF#000000##FFFFFF
##4A22971.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#30425B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2297;
/* rgb */ color: rgb(74, 34, 151);
/* oklch */ color: oklch(38.5% 0.176 291.4);
Tailwind
colors: {
  custom: {
    50: '#8562b7',
    500: '#4a2297',
    950: '#000000',
  },
}
SCSS
$custom: #4a2297;
$custom-light: #8562b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2297",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 260.513,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38483,
    "c": 0.17553,
    "h": 291.4
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#4A2297
secondary
#9BBE57
accent
#E642AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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