#4B2178#4B2178

#4B2178 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.141 H 301.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#4B2178
RGBrgb(75, 33, 120)
HSLhsl(269, 57%, 30%)
HSVhsv(269, 73%, 47%)
CMYKcmyk(37.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(23.47, 37.79, -42.05)
CIE-LCHlch(23.47, 56.54, 311.95°)
OKLaboklab(35.7% 0.0739 -0.1198)
OKLCHoklch(35.7% 0.141 301.7)
XYZxyz(6.8349, 3.9396, 18.1660)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2178 #4E7821
analogous
#212278 #4B2178 #772178
triadic
#4B2178 #784B21 #21784B
tetradic
#4B2178 #782122 #4E7821 #217877
square
#4B2178 #782122 #4E7821 #217877
split-complementary
#4B2178 #787721 #227821
monochromatic
#0F0718 #2D1448 #4B2178 #692EA8 #8747CC

Accessibility & contrast

On white

11.74
#4B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B2178
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2178#FFFFFF#000000##FFFFFF
##4B21781.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#41364A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b2178;
/* rgb */ color: rgb(75, 33, 120);
/* oklch */ color: oklch(35.7% 0.141 301.7);
Tailwind
colors: {
  custom: {
    50: '#8260a0',
    500: '#4b2178',
    950: '#000000',
  },
}
SCSS
$custom: #4b2178;
$custom-light: #8260a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2178",
  "rgb": {
    "r": 75,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 268.966,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.14074,
    "h": 301.7
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#4B2178
secondary
#7CAB4A
accent
#E04897
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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