#4B1876#4B1876

#4B1876 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.150 H 304.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4B1876
RGBrgb(75, 24, 118)
HSLhsl(273, 66%, 28%)
HSVhsv(273, 80%, 46%)
CMYKcmyk(36.4%, 79.7%, 0%, 53.7%)
CIE-LABlab(21.79, 41.56, -43.51)
CIE-LCHlch(21.79, 60.17, 313.69°)
OKLaboklab(34.46% 0.0836 -0.124)
OKLCHoklch(34.46% 0.15 304)
XYZxyz(6.4975, 3.4571, 17.4610)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1876 #437618
analogous
#1C1876 #4B1876 #761872
triadic
#4B1876 #764B18 #18764B
tetradic
#4B1876 #761C18 #437618 #187276
square
#4B1876 #761C18 #437618 #187276
split-complementary
#4B1876 #727618 #18761C
monochromatic
#100519 #2B0E43 #4B1876 #6B22A9 #8B33D5

Accessibility & contrast

On white

12.42
#4B1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4B1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1876
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1876#FFFFFF#000000##FFFFFF
##4B18761.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1876;
/* rgb */ color: rgb(75, 24, 118);
/* oklch */ color: oklch(34.5% 0.150 304.0);
Tailwind
colors: {
  custom: {
    50: '#825b9e',
    500: '#4b1876',
    950: '#000000',
  },
}
SCSS
$custom: #4b1876;
$custom-light: #825b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1876",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 272.553,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.14955,
    "h": 304
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#4B1876
secondary
#70AB3F
accent
#E93F8D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4B1876

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

Preview Lab → · Contrast checker → · Palette generator →

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