#4A1672#4A1672

#4A1672 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.147 H 305.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#4A1672
RGBrgb(74, 22, 114)
HSLhsl(274, 68%, 27%)
HSVhsv(274, 81%, 45%)
CMYKcmyk(35.1%, 80.7%, 0%, 55.3%)
CIE-LABlab(21.00, 41.23, -42.23)
CIE-LCHlch(21.00, 59.02, 314.31°)
OKLaboklab(33.76% 0.085 -0.1203)
OKLCHoklch(33.76% 0.147 305.2)
XYZxyz(6.1475, 3.2446, 16.2187)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1672 #3E7216
analogous
#1C1672 #4A1672 #72166C
triadic
#4A1672 #724A16 #16724A
tetradic
#4A1672 #721C16 #3E7216 #166C72
square
#4A1672 #721C16 #3E7216 #166C72
split-complementary
#4A1672 #6C7216 #16721C
monochromatic
#11051A #290C3F #4A1672 #6B20A5 #8C2CD6

Accessibility & contrast

On white

12.73
#4A1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4A1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1672
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1672#FFFFFF#000000##FFFFFF
##4A16721.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1672;
/* rgb */ color: rgb(74, 22, 114);
/* oklch */ color: oklch(33.8% 0.147 305.2);
Tailwind
colors: {
  custom: {
    50: '#815a9b',
    500: '#4a1672',
    950: '#000000',
  },
}
SCSS
$custom: #4a1672;
$custom-light: #815a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1672",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 273.913,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.33762,
    "c": 0.14726,
    "h": 305.2
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#4A1672
secondary
#6BA83C
accent
#EB3D89
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1672

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

Preview Lab → · Contrast checker → · Palette generator →

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