#4B1886#4B1886

#4B1886 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.167 H 298.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4B1886
RGBrgb(75, 24, 134)
HSLhsl(268, 70%, 31%)
HSVhsv(268, 82%, 53%)
CMYKcmyk(44%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.24, 45.62, -51.29)
CIE-LCHlch(23.24, 68.64, 311.65°)
OKLaboklab(35.92% 0.0789 -0.1468)
OKLCHoklch(35.92% 0.167 298.3)
XYZxyz(7.5302, 3.8702, 22.8999)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1886 #538618
analogous
#181C86 #4B1886 #821886
triadic
#4B1886 #864B18 #18864B
tetradic
#4B1886 #86181C #538618 #188682
square
#4B1886 #86181C #538618 #188682
split-complementary
#4B1886 #868218 #1C8618
monochromatic
#11051E #2E0F52 #4B1886 #6821BA #863CDC

Accessibility & contrast

On white

11.84
#4B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4B1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1886
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1886#FFFFFF#000000##FFFFFF
##4B18861.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#3C374F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1886;
/* rgb */ color: rgb(75, 24, 134);
/* oklch */ color: oklch(35.9% 0.167 298.3);
Tailwind
colors: {
  custom: {
    50: '#845caa',
    500: '#4b1886',
    950: '#000000',
  },
}
SCSS
$custom: #4b1886;
$custom-light: #845caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1886",
  "rgb": {
    "r": 75,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 267.818,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35915,
    "c": 0.1667,
    "h": 298.3
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#4B1886
secondary
#81BA40
accent
#EC3B9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B1886

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

Preview Lab → · Contrast checker → · Palette generator →

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