#4A1E7D#4A1E7D

#4A1E7D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.150 H 299.8°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4A1E7D
RGBrgb(74, 30, 125)
HSLhsl(268, 61%, 30%)
HSVhsv(268, 76%, 49%)
CMYKcmyk(40.8%, 76%, 0%, 51%)
CIE-LABlab(23.22, 40.42, -45.64)
CIE-LCHlch(23.22, 60.97, 311.53°)
OKLaboklab(35.62% 0.0746 -0.1303)
OKLCHoklch(35.62% 0.15 299.8)
XYZxyz(6.9891, 3.8650, 19.7759)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1E7D #517D1E
analogous
#1E227D #4A1E7D #791E7D
triadic
#4A1E7D #7D4A1E #1E7D4A
tetradic
#4A1E7D #7D1E22 #517D1E #1E7D79
square
#4A1E7D #7D1E22 #517D1E #1E7D79
split-complementary
#4A1E7D #7D791E #227D1E
monochromatic
#10061A #2D124C #4A1E7D #672AAE #8543D2

Accessibility & contrast

On white

11.84
#4A1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1E7D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1E7D#FFFFFF#000000##FFFFFF
##4A1E7D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1e7d;
/* rgb */ color: rgb(74, 30, 125);
/* oklch */ color: oklch(35.6% 0.150 299.8);
Tailwind
colors: {
  custom: {
    50: '#825ea3',
    500: '#4a1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1e7d;
$custom-light: #825ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1e7d",
  "rgb": {
    "r": 74,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 267.789,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35622,
    "c": 0.15016,
    "h": 299.8
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#4A1E7D
secondary
#7FB046
accent
#E4439A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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