#4B1978#4B1978

#4B1978 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.151 H 303.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4B1978
RGBrgb(75, 25, 120)
HSLhsl(272, 66%, 28%)
HSVhsv(272, 79%, 47%)
CMYKcmyk(37.5%, 79.2%, 0%, 52.9%)
CIE-LABlab(22.11, 41.63, -44.26)
CIE-LCHlch(22.11, 60.76, 313.25°)
OKLaboklab(34.74% 0.0822 -0.1262)
OKLCHoklch(34.74% 0.151 303.1)
XYZxyz(6.6386, 3.5472, 18.1006)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1978 #467819
analogous
#1B1978 #4B1978 #781975
triadic
#4B1978 #784B19 #19784B
tetradic
#4B1978 #781B19 #467819 #197578
square
#4B1978 #781B19 #467819 #197578
split-complementary
#4B1978 #757819 #19781B
monochromatic
#100519 #2B0E45 #4B1978 #6B24AB #8A36D5

Accessibility & contrast

On white

12.29
#4B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1978
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1978#FFFFFF#000000##FFFFFF
##4B19781.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#423148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1978;
/* rgb */ color: rgb(75, 25, 120);
/* oklch */ color: oklch(34.7% 0.151 303.1);
Tailwind
colors: {
  custom: {
    50: '#825ca0',
    500: '#4b1978',
    950: '#000000',
  },
}
SCSS
$custom: #4b1978;
$custom-light: #825ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1978",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 271.579,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.15059,
    "h": 303.1
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#4B1978
secondary
#74AD40
accent
#E83F8F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4B1978

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

Preview Lab → · Contrast checker → · Palette generator →

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