#4A1976#4A1976

#4A1976 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.148 H 303.2°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#4A1976
RGBrgb(74, 25, 118)
HSLhsl(272, 65%, 28%)
HSVhsv(272, 79%, 46%)
CMYKcmyk(37.3%, 78.8%, 0%, 53.7%)
CIE-LABlab(21.80, 40.93, -43.50)
CIE-LCHlch(21.80, 59.73, 313.26°)
OKLaboklab(34.43% 0.0811 -0.124)
OKLCHoklch(34.43% 0.148 303.2)
XYZxyz(6.4409, 3.4591, 17.4644)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1976 #457619
analogous
#1B1976 #4A1976 #761973
triadic
#4A1976 #764A19 #19764A
tetradic
#4A1976 #761B19 #457619 #197376
square
#4A1976 #761B19 #457619 #197376
split-complementary
#4A1976 #737619 #19761B
monochromatic
#100519 #2A0E43 #4A1976 #6A24A8 #8935D4

Accessibility & contrast

On white

12.41
#4A1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1976
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1976#FFFFFF#000000##FFFFFF
##4A19761.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#413146
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1976;
/* rgb */ color: rgb(74, 25, 118);
/* oklch */ color: oklch(34.4% 0.148 303.2);
Tailwind
colors: {
  custom: {
    50: '#815b9e',
    500: '#4a1976',
    950: '#000000',
  },
}
SCSS
$custom: #4a1976;
$custom-light: #815b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1976",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 271.613,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3443,
    "c": 0.1482,
    "h": 303.2
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#4A1976
secondary
#73AB40
accent
#E8408F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1976

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

Preview Lab → · Contrast checker → · Palette generator →

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