#4B1976#4B1976

#4B1976 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.148 H 303.8°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4B1976
RGBrgb(75, 25, 118)
HSLhsl(272, 65%, 28%)
HSVhsv(272, 79%, 46%)
CMYKcmyk(36.4%, 78.8%, 0%, 53.7%)
CIE-LABlab(21.94, 41.12, -43.26)
CIE-LCHlch(21.94, 59.69, 313.55°)
OKLaboklab(34.56% 0.0827 -0.1233)
OKLCHoklch(34.56% 0.148 303.8)
XYZxyz(6.5185, 3.4991, 17.4680)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1976 #447619
analogous
#1C1976 #4B1976 #761972
triadic
#4B1976 #764B19 #19764B
tetradic
#4B1976 #761C19 #447619 #197276
square
#4B1976 #761C19 #447619 #197276
split-complementary
#4B1976 #727619 #19761C
monochromatic
#100519 #2B0E43 #4B1976 #6B24A8 #8B35D4

Accessibility & contrast

On white

12.35
#4B1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4B1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1976
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1976#FFFFFF#000000##FFFFFF
##4B19761.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#423146
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1976;
/* rgb */ color: rgb(75, 25, 118);
/* oklch */ color: oklch(34.6% 0.148 303.8);
Tailwind
colors: {
  custom: {
    50: '#825c9e',
    500: '#4b1976',
    950: '#000000',
  },
}
SCSS
$custom: #4b1976;
$custom-light: #825c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1976",
  "rgb": {
    "r": 75,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 272.258,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.14842,
    "h": 303.8
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#4B1976
secondary
#71AB40
accent
#E8408E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1976

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

Preview Lab → · Contrast checker → · Palette generator →

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