#4B1979#4B1979

#4B1979 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.152 H 302.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4B1979
RGBrgb(75, 25, 121)
HSLhsl(271, 66%, 29%)
HSVhsv(271, 79%, 47%)
CMYKcmyk(38%, 79.3%, 0%, 52.5%)
CIE-LABlab(22.20, 41.88, -44.75)
CIE-LCHlch(22.20, 61.29, 313.10°)
OKLaboklab(34.83% 0.0819 -0.1277)
OKLCHoklch(34.83% 0.152 302.7)
XYZxyz(6.6997, 3.5716, 18.4219)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1979 #477919
analogous
#1B1979 #4B1979 #791977
triadic
#4B1979 #794B19 #19794B
tetradic
#4B1979 #791B19 #477919 #197779
square
#4B1979 #791B19 #477919 #197779
split-complementary
#4B1979 #777919 #19791B
monochromatic
#100519 #2C0F46 #4B1979 #6A23AC #8A37D6

Accessibility & contrast

On white

12.25
#4B1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1979
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1979#FFFFFF#000000##FFFFFF
##4B19791.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#413248
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1979;
/* rgb */ color: rgb(75, 25, 121);
/* oklch */ color: oklch(34.8% 0.152 302.7);
Tailwind
colors: {
  custom: {
    50: '#825ca0',
    500: '#4b1979',
    950: '#000000',
  },
}
SCSS
$custom: #4b1979;
$custom-light: #825ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1979",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 271.25,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34827,
    "c": 0.15168,
    "h": 302.7
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#4B1979
secondary
#75AE40
accent
#E93F90
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1979

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

Preview Lab → · Contrast checker → · Palette generator →

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