#4B1B7A#4B1B7A

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

Color values

HEX#4B1B7A
RGBrgb(75, 27, 122)
HSLhsl(270, 64%, 29%)
HSVhsv(270, 78%, 48%)
CMYKcmyk(38.5%, 77.9%, 0%, 52.2%)
CIE-LABlab(22.60, 41.24, -44.74)
CIE-LCHlch(22.60, 60.85, 312.67°)
OKLaboklab(35.13% 0.0798 -0.1276)
OKLCHoklch(35.13% 0.151 302)
XYZxyz(6.8056, 3.6848, 18.7613)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1B7A #4A7A1B
analogous
#1C1B7A #4B1B7A #7A1B7A
triadic
#4B1B7A #7A4B1B #1B7A4B
tetradic
#4B1B7A #7A1C1B #4A7A1B #1B7A7A
square
#4B1B7A #7A1C1B #4A7A1B #1B7A7A
split-complementary
#4B1B7A #7A7A1B #1B7A1C
monochromatic
#0F0619 #2C1048 #4B1B7A #6A26AC #893CD4

Accessibility & contrast

On white

12.09
#4B1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1B7A
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1B7A#FFFFFF#000000##FFFFFF
##4B1B7A1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#413349
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1b7a;
/* rgb */ color: rgb(75, 27, 122);
/* oklch */ color: oklch(35.1% 0.150 302.0);
Tailwind
colors: {
  custom: {
    50: '#825da1',
    500: '#4b1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #4b1b7a;
$custom-light: #825da1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1b7a",
  "rgb": {
    "r": 75,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 270.316,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35134,
    "c": 0.1505,
    "h": 302
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#4B1B7A
secondary
#78AE43
accent
#E74193
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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