#4A1B76#4A1B76

#4A1B76 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.146 H 302.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4A1B76
RGBrgb(74, 27, 118)
HSLhsl(271, 63%, 28%)
HSVhsv(271, 77%, 46%)
CMYKcmyk(37.3%, 77.1%, 0%, 53.7%)
CIE-LABlab(22.12, 40.02, -42.98)
CIE-LCHlch(22.12, 58.73, 312.96°)
OKLaboklab(34.66% 0.0792 -0.1225)
OKLCHoklch(34.66% 0.146 302.9)
XYZxyz(6.4852, 3.5477, 17.4791)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B76 #47761B
analogous
#1C1B76 #4A1B76 #761B74
triadic
#4A1B76 #764A1B #1B764A
tetradic
#4A1B76 #761C1B #47761B #1B7476
square
#4A1B76 #761C1B #47761B #1B7476
split-complementary
#4A1B76 #74761B #1B761C
monochromatic
#100619 #2B1044 #4A1B76 #6926A8 #883AD2

Accessibility & contrast

On white

12.28
#4A1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B76
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B76#FFFFFF#000000##FFFFFF
##4A1B761.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#413247
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a1b76;
/* rgb */ color: rgb(74, 27, 118);
/* oklch */ color: oklch(34.7% 0.146 302.9);
Tailwind
colors: {
  custom: {
    50: '#815c9e',
    500: '#4a1b76',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b76;
$custom-light: #815c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b76",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 270.989,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.14586,
    "h": 302.9
  },
  "luminance": 0.03548
}

Semantic roles & 50–950 ramp

primary
#4A1B76
secondary
#75AA42
accent
#E64291
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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