#4A2D81#4A2D81

#4A2D81 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.135 H 295.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4A2D81
RGBrgb(74, 45, 129)
HSLhsl(261, 48%, 34%)
HSVhsv(261, 65%, 51%)
CMYKcmyk(42.6%, 65.1%, 0%, 49.4%)
CIE-LABlab(26.50, 33.39, -42.84)
CIE-LCHlch(26.50, 54.32, 307.93°)
OKLaboklab(38.07% 0.0572 -0.1222)
OKLCHoklch(38.07% 0.135 295.1)
XYZxyz(7.7238, 4.9174, 21.3068)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2D81 #64812D
analogous
#2D3A81 #4A2D81 #742D81
triadic
#4A2D81 #814A2D #2D814A
tetradic
#4A2D81 #812D3A #64812D #2D8174
square
#4A2D81 #812D3A #64812D #2D8174
split-complementary
#4A2D81 #81742D #3A812D
monochromatic
#160D26 #301D54 #4A2D81 #643DAE #8461C8

Accessibility & contrast

On white

10.59
#4A2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4A2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2D81
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2D81#FFFFFF#000000##FFFFFF
##4A2D811.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#3C4052
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4a2d81;
/* rgb */ color: rgb(74, 45, 129);
/* oklch */ color: oklch(38.1% 0.135 295.1);
Tailwind
colors: {
  custom: {
    50: '#8167a6',
    500: '#4a2d81',
    950: '#000000',
  },
}
SCSS
$custom: #4a2d81;
$custom-light: #8167a6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2d81",
  "rgb": {
    "r": 74,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 260.714,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38071,
    "c": 0.13491,
    "h": 295.1
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#4A2D81
secondary
#92AE5C
accent
#D850A9
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4A2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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