#4A1977#4A1977

#4A1977 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.149 H 302.8°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#4A1977
RGBrgb(74, 25, 119)
HSLhsl(271, 65%, 28%)
HSVhsv(271, 79%, 47%)
CMYKcmyk(37.8%, 79%, 0%, 53.3%)
CIE-LABlab(21.88, 41.19, -44.00)
CIE-LCHlch(21.88, 60.27, 313.11°)
OKLaboklab(34.52% 0.0809 -0.1255)
OKLCHoklch(34.52% 0.149 302.8)
XYZxyz(6.5007, 3.4830, 17.7790)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1977 #467719
analogous
#1B1977 #4A1977 #771975
triadic
#4A1977 #774A19 #19774A
tetradic
#4A1977 #771B19 #467719 #197577
square
#4A1977 #771B19 #467719 #197577
split-complementary
#4A1977 #757719 #19771B
monochromatic
#100519 #2B0E44 #4A1977 #6924AA #8936D5

Accessibility & contrast

On white

12.38
#4A1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1977
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1977#FFFFFF#000000##FFFFFF
##4A19771.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#413147
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1977;
/* rgb */ color: rgb(74, 25, 119);
/* oklch */ color: oklch(34.5% 0.149 302.8);
Tailwind
colors: {
  custom: {
    50: '#815c9f',
    500: '#4a1977',
    950: '#000000',
  },
}
SCSS
$custom: #4a1977;
$custom-light: #815c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1977",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 271.277,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34518,
    "c": 0.14929,
    "h": 302.8
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#4A1977
secondary
#74AC40
accent
#E84090
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1977

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

Preview Lab → · Contrast checker → · Palette generator →

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