#4B1A7B#4B1A7B

#4B1A7B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.153 H 301.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4B1A7B
RGBrgb(75, 26, 123)
HSLhsl(270, 65%, 29%)
HSVhsv(270, 79%, 48%)
CMYKcmyk(39%, 78.9%, 0%, 51.8%)
CIE-LABlab(22.53, 41.95, -45.49)
CIE-LCHlch(22.53, 61.88, 312.68°)
OKLaboklab(35.11% 0.0804 -0.1298)
OKLCHoklch(35.11% 0.153 301.8)
XYZxyz(6.8453, 3.6647, 19.0818)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A7B #4A7B1A
analogous
#1A1A7B #4B1A7B #7B1A7B
triadic
#4B1A7B #7B4B1A #1A7B4B
tetradic
#4B1A7B #7B1A1A #4A7B1A #1A7B7B
square
#4B1A7B #7B1A1A #4A7B1A #1A7B7B
split-complementary
#4B1A7B #7B7B1A #1A7B1A
monochromatic
#0F0519 #2C0F48 #4B1A7B #6A25AE #893AD5

Accessibility & contrast

On white

12.12
#4B1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A7B
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A7B#FFFFFF#000000##FFFFFF
##4B1A7B1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#41334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1a7b;
/* rgb */ color: rgb(75, 26, 123);
/* oklch */ color: oklch(35.1% 0.153 301.8);
Tailwind
colors: {
  custom: {
    50: '#825ca2',
    500: '#4b1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a7b;
$custom-light: #825ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a7b",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 270.309,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35112,
    "c": 0.15274,
    "h": 301.8
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#4B1A7B
secondary
#78AF42
accent
#E84093
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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