#4B1786#4B1786

#4B1786 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.168 H 298.4°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4B1786
RGBrgb(75, 23, 134)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 53%)
CMYKcmyk(44%, 82.8%, 0%, 47.5%)
CIE-LABlab(23.10, 46.02, -51.51)
CIE-LCHlch(23.10, 69.07, 311.78°)
OKLaboklab(35.82% 0.0797 -0.1475)
OKLCHoklch(35.82% 0.168 298.4)
XYZxyz(7.5100, 3.8298, 22.8932)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1786 #528617
analogous
#171A86 #4B1786 #821786
triadic
#4B1786 #864B17 #17864B
tetradic
#4B1786 #86171A #528617 #178682
square
#4B1786 #86171A #528617 #178682
split-complementary
#4B1786 #868217 #1A8617
monochromatic
#11051E #2E0E52 #4B1786 #6820BA #873ADD

Accessibility & contrast

On white

11.89
#4B1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1786
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1786#FFFFFF#000000##FFFFFF
##4B17861.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b1786;
/* rgb */ color: rgb(75, 23, 134);
/* oklch */ color: oklch(35.8% 0.168 298.4);
Tailwind
colors: {
  custom: {
    50: '#845caa',
    500: '#4b1786',
    950: '#000000',
  },
}
SCSS
$custom: #4b1786;
$custom-light: #845caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1786",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 268.108,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35819,
    "c": 0.16763,
    "h": 298.4
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#4B1786
secondary
#80BA3F
accent
#ED3A9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B1786

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

Preview Lab → · Contrast checker → · Palette generator →

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