#4A1B71#4A1B71

#4A1B71 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.140 H 304.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#4A1B71
RGBrgb(74, 27, 113)
HSLhsl(273, 61%, 27%)
HSVhsv(273, 76%, 44%)
CMYKcmyk(34.5%, 76.1%, 0%, 55.7%)
CIE-LABlab(21.70, 38.74, -40.45)
CIE-LCHlch(21.70, 56.01, 313.77°)
OKLaboklab(34.23% 0.0803 -0.1151)
OKLCHoklch(34.23% 0.14 304.9)
XYZxyz(6.1959, 3.4320, 15.9556)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B71 #42711B
analogous
#1F1B71 #4A1B71 #711B6D
triadic
#4A1B71 #714A1B #1B714A
tetradic
#4A1B71 #711F1B #42711B #1B6D71
square
#4A1B71 #711F1B #42711B #1B6D71
split-complementary
#4A1B71 #6D711B #1B711F
monochromatic
#100619 #2A0F40 #4A1B71 #6A27A2 #8A37CF

Accessibility & contrast

On white

12.45
#4A1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B71
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B71#FFFFFF#000000##FFFFFF
##4A1B711.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#433044
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1b71;
/* rgb */ color: rgb(74, 27, 113);
/* oklch */ color: oklch(34.2% 0.140 304.9);
Tailwind
colors: {
  custom: {
    50: '#815c9a',
    500: '#4a1b71',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b71;
$custom-light: #815c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b71",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 272.791,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34228,
    "c": 0.14028,
    "h": 304.9
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#4A1B71
secondary
#6FA642
accent
#E5438C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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