#4B1872#4B1872

#4B1872 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.145 H 305.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#4B1872
RGBrgb(75, 24, 114)
HSLhsl(274, 65%, 27%)
HSVhsv(274, 79%, 45%)
CMYKcmyk(34.2%, 78.9%, 0%, 55.3%)
CIE-LABlab(21.45, 40.57, -41.49)
CIE-LCHlch(21.45, 58.03, 314.35°)
OKLaboklab(34.11% 0.0846 -0.1181)
OKLCHoklch(34.11% 0.145 305.6)
XYZxyz(6.2649, 3.3641, 16.2356)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1872 #3F7218
analogous
#1E1872 #4B1872 #72186C
triadic
#4B1872 #724B18 #18724B
tetradic
#4B1872 #721E18 #3F7218 #186C72
square
#4B1872 #721E18 #3F7218 #186C72
split-complementary
#4B1872 #6C7218 #18721E
monochromatic
#110519 #2A0D3F #4B1872 #6C23A5 #8D31D4

Accessibility & contrast

On white

12.55
#4B1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4B1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1872
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1872#FFFFFF#000000##FFFFFF
##4B18721.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#442E44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4b1872;
/* rgb */ color: rgb(75, 24, 114);
/* oklch */ color: oklch(34.1% 0.145 305.6);
Tailwind
colors: {
  custom: {
    50: '#825b9b',
    500: '#4b1872',
    950: '#000000',
  },
}
SCSS
$custom: #4b1872;
$custom-light: #825b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1872",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 274,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34109,
    "c": 0.14525,
    "h": 305.6
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#4B1872
secondary
#6CA73E
accent
#E84089
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1872

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

Preview Lab → · Contrast checker → · Palette generator →

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