#4A1072#4A1072

#4A1072 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.153 H 306.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#4A1072
RGBrgb(74, 16, 114)
HSLhsl(276, 75%, 25%)
HSVhsv(276, 86%, 45%)
CMYKcmyk(35.1%, 86%, 0%, 55.3%)
CIE-LABlab(20.21, 43.52, -43.52)
CIE-LCHlch(20.21, 61.54, 315.00°)
OKLaboklab(33.21% 0.09 -0.124)
OKLCHoklch(33.21% 0.153 306)
XYZxyz(6.0459, 3.0414, 16.1849)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1072 #387210
analogous
#191072 #4A1072 #721069
triadic
#4A1072 #724A10 #10724A
tetradic
#4A1072 #721910 #387210 #106972
square
#4A1072 #721910 #387210 #106972
split-complementary
#4A1072 #697210 #107219
monochromatic
#11041B #27083C #4A1072 #6D18A8 #901FDD

Accessibility & contrast

On white

13.06
#4A1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A1072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1072
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1072#FFFFFF#000000##FFFFFF
##4A10721.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#432B42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1072;
/* rgb */ color: rgb(74, 16, 114);
/* oklch */ color: oklch(33.2% 0.153 306.0);
Tailwind
colors: {
  custom: {
    50: '#81579b',
    500: '#4a1072',
    950: '#000000',
  },
}
SCSS
$custom: #4a1072;
$custom-light: #81579b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1072",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 275.51,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33211,
    "c": 0.15322,
    "h": 306
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#4A1072
secondary
#64A934
accent
#F23683
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1072

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

Preview Lab → · Contrast checker → · Palette generator →

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