#4B2179#4B2179

#4B2179 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.142 H 301.3°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4B2179
RGBrgb(75, 33, 121)
HSLhsl(269, 57%, 30%)
HSVhsv(269, 73%, 47%)
CMYKcmyk(38%, 72.7%, 0%, 52.5%)
CIE-LABlab(23.55, 38.06, -42.55)
CIE-LCHlch(23.55, 57.09, 311.81°)
OKLaboklab(35.78% 0.0737 -0.1212)
OKLCHoklch(35.78% 0.142 301.3)
XYZxyz(6.8959, 3.9640, 18.4873)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2179 #4F7921
analogous
#212379 #4B2179 #772179
triadic
#4B2179 #794B21 #21794B
tetradic
#4B2179 #792123 #4F7921 #217977
square
#4B2179 #792123 #4F7921 #217977
split-complementary
#4B2179 #797721 #237921
monochromatic
#0F0719 #2D1449 #4B2179 #692EA9 #8747CD

Accessibility & contrast

On white

11.71
#4B2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4B2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2179
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2179#FFFFFF#000000##FFFFFF
##4B21791.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#41364A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b2179;
/* rgb */ color: rgb(75, 33, 121);
/* oklch */ color: oklch(35.8% 0.142 301.3);
Tailwind
colors: {
  custom: {
    50: '#8260a0',
    500: '#4b2179',
    950: '#000000',
  },
}
SCSS
$custom: #4b2179;
$custom-light: #8260a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2179",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 268.636,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35782,
    "c": 0.14191,
    "h": 301.3
  },
  "luminance": 0.03964
}

Semantic roles & 50–950 ramp

primary
#4B2179
secondary
#7DAC4A
accent
#E04797
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4B2179

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

Preview Lab → · Contrast checker → · Palette generator →

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