#4A1D97#4A1D97

#4A1D97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.180 H 292.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#4A1D97
RGBrgb(74, 29, 151)
HSLhsl(262, 68%, 35%)
HSVhsv(262, 81%, 59%)
CMYKcmyk(51%, 80.8%, 0%, 40.8%)
CIE-LABlab(25.47, 47.86, -58.19)
CIE-LCHlch(25.47, 75.34, 309.44°)
OKLaboklab(37.93% 0.068 -0.1671)
OKLCHoklch(37.93% 0.18 292.1)
XYZxyz(8.8477, 4.5686, 29.6878)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1D97 #6A971D
analogous
#1D2D97 #4A1D97 #871D97
triadic
#4A1D97 #974A1D #1D974A
tetradic
#4A1D97 #971D2D #6A971D #1D9787
square
#4A1D97 #971D2D #6A971D #1D9787
split-complementary
#4A1D97 #97871D #2D971D
monochromatic
#180930 #311364 #4A1D97 #6327CA #8551DE

Accessibility & contrast

On white

10.97
#4A1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4A1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1D97
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1D97#FFFFFF#000000##FFFFFF
##4A1D971.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#30405A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4a1d97;
/* rgb */ color: rgb(74, 29, 151);
/* oklch */ color: oklch(37.9% 0.180 292.1);
Tailwind
colors: {
  custom: {
    50: '#855fb7',
    500: '#4a1d97',
    950: '#000000',
  },
}
SCSS
$custom: #4a1d97;
$custom-light: #855fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1d97",
  "rgb": {
    "r": 74,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 262.131,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37934,
    "c": 0.18044,
    "h": 292.1
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#4A1D97
secondary
#97C04F
accent
#EB3DAB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4A1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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