#4A1D7D#4A1D7D

#4A1D7D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.151 H 299.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4A1D7D
RGBrgb(74, 29, 125)
HSLhsl(268, 62%, 30%)
HSVhsv(268, 77%, 49%)
CMYKcmyk(40.8%, 76.8%, 0%, 51%)
CIE-LABlab(23.05, 40.90, -45.92)
CIE-LCHlch(23.05, 61.49, 311.69°)
OKLaboklab(35.5% 0.0755 -0.1311)
OKLCHoklch(35.5% 0.151 299.9)
XYZxyz(6.9642, 3.8152, 19.7676)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D7D #507D1D
analogous
#1D207D #4A1D7D #7A1D7D
triadic
#4A1D7D #7D4A1D #1D7D4A
tetradic
#4A1D7D #7D1D20 #507D1D #1D7D7A
square
#4A1D7D #7D1D20 #507D1D #1D7D7A
split-complementary
#4A1D7D #7D7A1D #207D1D
monochromatic
#0F061A #2D114B #4A1D7D #6729AF #8641D3

Accessibility & contrast

On white

11.91
#4A1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D7D
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D7D#FFFFFF#000000##FFFFFF
##4A1D7D1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#3E364B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a1d7d;
/* rgb */ color: rgb(74, 29, 125);
/* oklch */ color: oklch(35.5% 0.151 299.9);
Tailwind
colors: {
  custom: {
    50: '#825ea3',
    500: '#4a1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d7d;
$custom-light: #825ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d7d",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 268.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35502,
    "c": 0.15135,
    "h": 299.9
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#4A1D7D
secondary
#7EB145
accent
#E54299
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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