#4B1779#4B1779

#4B1779 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.154 H 303.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4B1779
RGBrgb(75, 23, 121)
HSLhsl(272, 68%, 28%)
HSVhsv(272, 81%, 47%)
CMYKcmyk(38%, 81%, 0%, 52.5%)
CIE-LABlab(21.90, 42.73, -45.24)
CIE-LCHlch(21.90, 62.23, 313.37°)
OKLaboklab(34.62% 0.0837 -0.1291)
OKLCHoklch(34.62% 0.154 303)
XYZxyz(6.6584, 3.4891, 18.4081)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1779 #457917
analogous
#1A1779 #4B1779 #791776
triadic
#4B1779 #794B17 #17794B
tetradic
#4B1779 #791A17 #457917 #177679
square
#4B1779 #791A17 #457917 #177679
split-complementary
#4B1779 #767917 #17791A
monochromatic
#10051A #2B0D46 #4B1779 #6B21AC #8A32D8

Accessibility & contrast

On white

12.37
#4B1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4B1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1779
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1779#FFFFFF#000000##FFFFFF
##4B17791.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#413148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4b1779;
/* rgb */ color: rgb(75, 23, 121);
/* oklch */ color: oklch(34.6% 0.154 303.0);
Tailwind
colors: {
  custom: {
    50: '#825ba1',
    500: '#4b1779',
    950: '#000000',
  },
}
SCSS
$custom: #4b1779;
$custom-light: #825ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1779",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 271.837,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34619,
    "c": 0.15384,
    "h": 303
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#4B1779
secondary
#72AE3E
accent
#EB3D8F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1779

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

Preview Lab → · Contrast checker → · Palette generator →

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