#4B2A79#4B2A79

#4B2A79 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.129 H 299.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#4B2A79
RGBrgb(75, 42, 121)
HSLhsl(265, 48%, 32%)
HSVhsv(265, 65%, 47%)
CMYKcmyk(38%, 65.3%, 0%, 52.5%)
CIE-LABlab(25.36, 33.10, -39.63)
CIE-LCHlch(25.36, 51.63, 309.87°)
OKLaboklab(37.08% 0.0631 -0.1127)
OKLCHoklch(37.08% 0.129 299.2)
XYZxyz(7.1800, 4.5322, 18.5820)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2A79 #58792A
analogous
#2A3179 #4B2A79 #732A79
triadic
#4B2A79 #794B2A #2A794B
tetradic
#4B2A79 #792A31 #58792A #2A7973
square
#4B2A79 #792A31 #58792A #2A7973
split-complementary
#4B2A79 #79732A #31792A
monochromatic
#130A1E #2F1A4C #4B2A79 #673AA6 #8658C5

Accessibility & contrast

On white

11.02
#4B2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4B2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2A79
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2A79#FFFFFF#000000##FFFFFF
##4B2A791.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#073B77
Tritanopia (blue-blind)
#413B4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b2a79;
/* rgb */ color: rgb(75, 42, 121);
/* oklch */ color: oklch(37.1% 0.129 299.2);
Tailwind
colors: {
  custom: {
    50: '#8165a0',
    500: '#4b2a79',
    950: '#000000',
  },
}
SCSS
$custom: #4b2a79;
$custom-light: #8165a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2a79",
  "rgb": {
    "r": 75,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 265.063,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3708,
    "c": 0.12913,
    "h": 299.2
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#4B2A79
secondary
#87AB54
accent
#D8509F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4B2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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