#4B1B79#4B1B79

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

Color values

HEX#4B1B79
RGBrgb(75, 27, 121)
HSLhsl(271, 64%, 29%)
HSVhsv(271, 78%, 47%)
CMYKcmyk(38%, 77.7%, 0%, 52.5%)
CIE-LABlab(22.51, 40.98, -44.24)
CIE-LCHlch(22.51, 60.31, 312.81°)
OKLaboklab(35.05% 0.08 -0.1262)
OKLCHoklch(35.05% 0.149 302.4)
XYZxyz(6.7439, 3.6602, 18.4366)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1B79 #49791B
analogous
#1C1B79 #4B1B79 #791B78
triadic
#4B1B79 #794B1B #1B794B
tetradic
#4B1B79 #791C1B #49791B #1B7879
square
#4B1B79 #791C1B #49791B #1B7879
split-complementary
#4B1B79 #78791B #1B791C
monochromatic
#100619 #2C1047 #4B1B79 #6A26AB #893BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4B1B79#FFFFFF#000000##FFFFFF
##4B1B791.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)
#00357C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#413349
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1b79;
/* rgb */ color: rgb(75, 27, 121);
/* oklch */ color: oklch(35.0% 0.149 302.4);
Tailwind
colors: {
  custom: {
    50: '#825da0',
    500: '#4b1b79',
    950: '#000000',
  },
}
SCSS
$custom: #4b1b79;
$custom-light: #825da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1b79",
  "rgb": {
    "r": 75,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 270.638,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.1494,
    "h": 302.4
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#4B1B79
secondary
#77AD43
accent
#E74192
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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