#4A1772#4A1772

#4A1772 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.146 H 305.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#4A1772
RGBrgb(74, 23, 114)
HSLhsl(274, 66%, 27%)
HSVhsv(274, 80%, 45%)
CMYKcmyk(35.1%, 79.8%, 0%, 55.3%)
CIE-LABlab(21.15, 40.81, -41.99)
CIE-LCHlch(21.15, 58.55, 314.18°)
OKLaboklab(33.87% 0.0841 -0.1196)
OKLCHoklch(33.87% 0.146 305.1)
XYZxyz(6.1670, 3.2836, 16.2252)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1772 #3F7217
analogous
#1C1772 #4A1772 #72176D
triadic
#4A1772 #724A17 #17724A
tetradic
#4A1772 #721C17 #3F7217 #176D72
square
#4A1772 #721C17 #3F7217 #176D72
split-complementary
#4A1772 #6D7217 #17721C
monochromatic
#110519 #290D3F #4A1772 #6B21A5 #8C2ED5

Accessibility & contrast

On white

12.68
#4A1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4A1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1772
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1772#FFFFFF#000000##FFFFFF
##4A17721.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#422E44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4a1772;
/* rgb */ color: rgb(74, 23, 114);
/* oklch */ color: oklch(33.9% 0.146 305.1);
Tailwind
colors: {
  custom: {
    50: '#815a9b',
    500: '#4a1772',
    950: '#000000',
  },
}
SCSS
$custom: #4a1772;
$custom-light: #815a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1772",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 273.626,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33865,
    "c": 0.14615,
    "h": 305.1
  },
  "luminance": 0.03284
}

Semantic roles & 50–950 ramp

primary
#4A1772
secondary
#6CA83D
accent
#E93E8A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1772

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

Preview Lab → · Contrast checker → · Palette generator →

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