#4B1A7D#4B1A7D

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

Color values

HEX#4B1A7D
RGBrgb(75, 26, 125)
HSLhsl(270, 66%, 30%)
HSVhsv(270, 79%, 49%)
CMYKcmyk(40%, 79.2%, 0%, 51%)
CIE-LABlab(22.71, 42.46, -46.47)
CIE-LCHlch(22.71, 62.95, 312.42°)
OKLaboklab(35.29% 0.0799 -0.1327)
OKLCHoklch(35.29% 0.155 301.1)
XYZxyz(6.9718, 3.7153, 19.7479)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A7D #4C7D1A
analogous
#1A1B7D #4B1A7D #7D1A7D
triadic
#4B1A7D #7D4B1A #1A7D4B
tetradic
#4B1A7D #7D1A1B #4C7D1A #1A7D7D
square
#4B1A7D #7D1A1B #4C7D1A #1A7D7D
split-complementary
#4B1A7D #7D7D1A #1B7D1A
monochromatic
#0F0519 #2D0F4A #4B1A7D #6925B0 #883BD6

Accessibility & contrast

On white

12.05
#4B1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1A7D
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A7D#FFFFFF#000000##FFFFFF
##4B1A7D1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1a7d;
/* rgb */ color: rgb(75, 26, 125);
/* oklch */ color: oklch(35.3% 0.155 301.1);
Tailwind
colors: {
  custom: {
    50: '#835ca3',
    500: '#4b1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a7d;
$custom-light: #835ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a7d",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 269.697,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35291,
    "c": 0.15493,
    "h": 301.1
  },
  "luminance": 0.03715
}

Semantic roles & 50–950 ramp

primary
#4B1A7D
secondary
#7AB142
accent
#E93F95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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