#4A2D9C#4A2D9C

#4A2D9C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.169 H 288.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4A2D9C
RGBrgb(74, 45, 156)
HSLhsl(256, 55%, 39%)
HSVhsv(256, 71%, 61%)
CMYKcmyk(52.6%, 71.2%, 0%, 38.8%)
CIE-LABlab(28.73, 41.36, -55.91)
CIE-LCHlch(28.73, 69.54, 306.49°)
OKLaboklab(40.37% 0.0534 -0.1606)
OKLCHoklch(40.37% 0.169 288.4)
XYZxyz(9.7614, 5.7325, 32.0382)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2D9C #7F9C2D
analogous
#2D479C #4A2D9C #822D9C
triadic
#4A2D9C #9C4A2D #2D9C4A
tetradic
#4A2D9C #9C2D47 #7F9C2D #2D9C82
square
#4A2D9C #9C2D47 #7F9C2D #2D9C82
split-complementary
#4A2D9C #9C822D #479C2D
monochromatic
#1D123D #331F6D #4A2D9C #623FC8 #896ED5

Accessibility & contrast

On white

9.78
#4A2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4A2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2D9C
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2D9C#FFFFFF#000000##FFFFFF
##4A2D9C1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#2B4A61
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a2d9c;
/* rgb */ color: rgb(74, 45, 156);
/* oklch */ color: oklch(40.4% 0.169 288.4);
Tailwind
colors: {
  custom: {
    50: '#8568ba',
    500: '#4a2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #4a2d9c;
$custom-light: #8568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2d9c",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 255.676,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4037,
    "c": 0.1692,
    "h": 288.4
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#4A2D9C
secondary
#A6BC68
accent
#DF49B8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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