#4A2D97#4A2D97

#4A2D97 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.163 H 289.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#4A2D97
RGBrgb(74, 45, 151)
HSLhsl(256, 54%, 38%)
HSVhsv(256, 70%, 59%)
CMYKcmyk(51%, 70.2%, 0%, 40.8%)
CIE-LABlab(28.29, 39.87, -53.57)
CIE-LCHlch(28.29, 66.78, 306.66°)
OKLaboklab(39.92% 0.0543 -0.1537)
OKLCHoklch(39.92% 0.163 289.4)
XYZxyz(9.3467, 5.5666, 29.8541)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2D97 #7A972D
analogous
#2D4597 #4A2D97 #7F2D97
triadic
#4A2D97 #974A2D #2D974A
tetradic
#4A2D97 #972D45 #7A972D #2D977F
square
#4A2D97 #972D45 #7A972D #2D977F
split-complementary
#4A2D97 #977F2D #45972D
monochromatic
#1C1139 #331F68 #4A2D97 #623CC5 #886BD3

Accessibility & contrast

On white

9.94
#4A2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4A2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2D97
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2D97#FFFFFF#000000##FFFFFF
##4A2D971.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#2F485E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a2d97;
/* rgb */ color: rgb(74, 45, 151);
/* oklch */ color: oklch(39.9% 0.163 289.4);
Tailwind
colors: {
  custom: {
    50: '#8468b6',
    500: '#4a2d97',
    950: '#000000',
  },
}
SCSS
$custom: #4a2d97;
$custom-light: #8468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2d97",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 256.415,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39924,
    "c": 0.16299,
    "h": 289.4
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#4A2D97
secondary
#A3BA66
accent
#DD4AB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4A2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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