#4B1780#4B1780

#4B1780 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.161 H 300.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4B1780
RGBrgb(75, 23, 128)
HSLhsl(270, 70%, 30%)
HSVhsv(270, 82%, 50%)
CMYKcmyk(41.4%, 82%, 0%, 49.8%)
CIE-LABlab(22.54, 44.49, -48.65)
CIE-LCHlch(22.54, 65.93, 312.45°)
OKLaboklab(35.26% 0.0816 -0.1391)
OKLCHoklch(35.26% 0.161 300.4)
XYZxyz(7.1034, 3.6671, 20.7515)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1780 #4C8017
analogous
#171880 #4B1780 #7F1780
triadic
#4B1780 #804B17 #17804B
tetradic
#4B1780 #801718 #4C8017 #17807F
square
#4B1780 #801718 #4C8017 #17807F
split-complementary
#4B1780 #807F17 #188017
monochromatic
#0F051A #2D0E4C #4B1780 #6920B4 #8836DB

Accessibility & contrast

On white

12.11
#4B1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1780
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1780#FFFFFF#000000##FFFFFF
##4B17801.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#3F344C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1780;
/* rgb */ color: rgb(75, 23, 128);
/* oklch */ color: oklch(35.3% 0.161 300.4);
Tailwind
colors: {
  custom: {
    50: '#835ba6',
    500: '#4b1780',
    950: '#000000',
  },
}
SCSS
$custom: #4b1780;
$custom-light: #835ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1780",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 269.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.16127,
    "h": 300.4
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

primary
#4B1780
secondary
#7AB43E
accent
#EC3B95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1780

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

Preview Lab → · Contrast checker → · Palette generator →

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