#4A1B7D#4A1B7D

#4A1B7D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.154 H 300.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4A1B7D
RGBrgb(74, 27, 125)
HSLhsl(269, 64%, 30%)
HSVhsv(269, 78%, 49%)
CMYKcmyk(40.8%, 78.4%, 0%, 51%)
CIE-LABlab(22.72, 41.83, -46.45)
CIE-LCHlch(22.72, 62.51, 312.01°)
OKLaboklab(35.27% 0.0774 -0.1327)
OKLCHoklch(35.27% 0.154 300.3)
XYZxyz(6.9167, 3.7203, 19.7517)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1B7D #4E7D1B
analogous
#1B1D7D #4A1B7D #7B1B7D
triadic
#4A1B7D #7D4A1B #1B7D4A
tetradic
#4A1B7D #7D1B1D #4E7D1B #1B7D7B
square
#4A1B7D #7D1B1D #4E7D1B #1B7D7B
split-complementary
#4A1B7D #7D7B1B #1D7D1B
monochromatic
#0F0519 #2C104B #4A1B7D #6826AF #863DD5

Accessibility & contrast

On white

12.04
#4A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4A1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1B7D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1B7D#FFFFFF#000000##FFFFFF
##4A1B7D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#3E354B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a1b7d;
/* rgb */ color: rgb(74, 27, 125);
/* oklch */ color: oklch(35.3% 0.154 300.3);
Tailwind
colors: {
  custom: {
    50: '#825da3',
    500: '#4a1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #4a1b7d;
$custom-light: #825da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1b7d",
  "rgb": {
    "r": 74,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 268.776,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.15364,
    "h": 300.3
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#4A1B7D
secondary
#7CB143
accent
#E74097
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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