#4B1D79#4B1D79

#4B1D79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.147 H 302.0°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#4B1D79
RGBrgb(75, 29, 121)
HSLhsl(270, 61%, 29%)
HSVhsv(270, 76%, 47%)
CMYKcmyk(38%, 76%, 0%, 52.5%)
CIE-LABlab(22.84, 40.05, -43.71)
CIE-LCHlch(22.84, 59.28, 312.50°)
OKLaboklab(35.28% 0.078 -0.1246)
OKLCHoklch(35.28% 0.147 302)
XYZxyz(6.7914, 3.7550, 18.4525)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1D79 #4B791D
analogous
#1D1D79 #4B1D79 #791D79
triadic
#4B1D79 #794B1D #1D794B
tetradic
#4B1D79 #791D1D #4B791D #1D7979
square
#4B1D79 #791D1D #4B791D #1D7979
split-complementary
#4B1D79 #79791D #1D791D
monochromatic
#0F0619 #2C1148 #4B1D79 #6A29AA #883FD1

Accessibility & contrast

On white

11.99
#4B1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4B1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1D79
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1D79#FFFFFF#000000##FFFFFF
##4B1D791.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#413449
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1d79;
/* rgb */ color: rgb(75, 29, 121);
/* oklch */ color: oklch(35.3% 0.147 302.0);
Tailwind
colors: {
  custom: {
    50: '#825ea0',
    500: '#4b1d79',
    950: '#000000',
  },
}
SCSS
$custom: #4b1d79;
$custom-light: #825ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1d79",
  "rgb": {
    "r": 75,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 270,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3528,
    "c": 0.14701,
    "h": 302
  },
  "luminance": 0.03755
}

Semantic roles & 50–950 ramp

primary
#4B1D79
secondary
#79AD45
accent
#E44394
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4B1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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