#4A1776#4A1776

#4A1776 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.150 H 303.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4A1776
RGBrgb(74, 23, 118)
HSLhsl(272, 67%, 28%)
HSVhsv(272, 81%, 46%)
CMYKcmyk(37.3%, 80.5%, 0%, 53.7%)
CIE-LABlab(21.49, 41.80, -43.99)
CIE-LCHlch(21.49, 60.69, 313.54°)
OKLaboklab(34.22% 0.083 -0.1254)
OKLCHoklch(34.22% 0.15 303.5)
XYZxyz(6.3997, 3.3766, 17.4506)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1776 #437617
analogous
#1B1776 #4A1776 #761772
triadic
#4A1776 #764A17 #17764A
tetradic
#4A1776 #761B17 #437617 #177276
square
#4A1776 #761B17 #437617 #177276
split-complementary
#4A1776 #727617 #17761B
monochromatic
#10051A #2A0D43 #4A1776 #6A21A9 #8A31D7

Accessibility & contrast

On white

12.53
#4A1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4A1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1776
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1776#FFFFFF#000000##FFFFFF
##4A17761.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1776;
/* rgb */ color: rgb(74, 23, 118);
/* oklch */ color: oklch(34.2% 0.150 303.5);
Tailwind
colors: {
  custom: {
    50: '#815b9e',
    500: '#4a1776',
    950: '#000000',
  },
}
SCSS
$custom: #4a1776;
$custom-light: #815b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1776",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 272.211,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.15042,
    "h": 303.5
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#4A1776
secondary
#70AB3E
accent
#EA3E8E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1776

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

Preview Lab → · Contrast checker → · Palette generator →

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