#4B1B76#4B1B76

#4B1B76 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.146 H 303.5°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4B1B76
RGBrgb(75, 27, 118)
HSLhsl(272, 63%, 28%)
HSVhsv(272, 77%, 46%)
CMYKcmyk(36.4%, 77.1%, 0%, 53.7%)
CIE-LABlab(22.26, 40.22, -42.74)
CIE-LCHlch(22.26, 58.69, 313.26°)
OKLaboklab(34.79% 0.0807 -0.1218)
OKLCHoklch(34.79% 0.146 303.5)
XYZxyz(6.5628, 3.5877, 17.4828)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1B76 #46761B
analogous
#1D1B76 #4B1B76 #761B73
triadic
#4B1B76 #764B1B #1B764B
tetradic
#4B1B76 #761D1B #46761B #1B7376
square
#4B1B76 #761D1B #46761B #1B7376
split-complementary
#4B1B76 #73761B #1B761D
monochromatic
#100619 #2B1044 #4B1B76 #6B26A8 #8A3AD2

Accessibility & contrast

On white

12.23
#4B1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4B1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1B76
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1B76#FFFFFF#000000##FFFFFF
##4B1B761.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#423247
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1b76;
/* rgb */ color: rgb(75, 27, 118);
/* oklch */ color: oklch(34.8% 0.146 303.5);
Tailwind
colors: {
  custom: {
    50: '#825d9e',
    500: '#4b1b76',
    950: '#000000',
  },
}
SCSS
$custom: #4b1b76;
$custom-light: #825d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1b76",
  "rgb": {
    "r": 75,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 271.648,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34787,
    "c": 0.14608,
    "h": 303.5
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#4B1B76
secondary
#74AA42
accent
#E6428F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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