#4A1681#4A1681

#4A1681 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.163 H 299.6°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4A1681
RGBrgb(74, 22, 129)
HSLhsl(269, 71%, 30%)
HSVhsv(269, 83%, 51%)
CMYKcmyk(42.6%, 82.9%, 0%, 49.4%)
CIE-LABlab(22.35, 44.98, -49.59)
CIE-LCHlch(22.35, 66.95, 312.21°)
OKLaboklab(35.13% 0.0805 -0.1419)
OKLCHoklch(35.13% 0.163 299.6)
XYZxyz(7.0724, 3.6146, 21.0897)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1681 #4D8116
analogous
#161781 #4A1681 #801681
triadic
#4A1681 #814A16 #16814A
tetradic
#4A1681 #811617 #4D8116 #168180
square
#4A1681 #811617 #4D8116 #168180
split-complementary
#4A1681 #818016 #178116
monochromatic
#0F041A #2C0D4D #4A1681 #681FB5 #8635DD

Accessibility & contrast

On white

12.19
#4A1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4A1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1681
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1681#FFFFFF#000000##FFFFFF
##4A16811.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#3D344C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1681;
/* rgb */ color: rgb(74, 22, 129);
/* oklch */ color: oklch(35.1% 0.163 299.6);
Tailwind
colors: {
  custom: {
    50: '#835ba6',
    500: '#4a1681',
    950: '#000000',
  },
}
SCSS
$custom: #4a1681;
$custom-light: #835ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1681",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 269.159,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35127,
    "c": 0.16314,
    "h": 299.6
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#4A1681
secondary
#7BB63D
accent
#EE3A96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1681

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

Preview Lab → · Contrast checker → · Palette generator →

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