#4B1788#4B1788

#4B1788 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.170 H 297.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4B1788
RGBrgb(75, 23, 136)
HSLhsl(268, 71%, 31%)
HSVhsv(268, 83%, 53%)
CMYKcmyk(44.9%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.29, 46.53, -52.45)
CIE-LCHlch(23.29, 70.12, 311.57°)
OKLaboklab(36.01% 0.079 -0.1502)
OKLCHoklch(36.01% 0.17 297.7)
XYZxyz(7.6508, 3.8861, 23.6348)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1788 #548817
analogous
#171B88 #4B1788 #831788
triadic
#4B1788 #884B17 #17884B
tetradic
#4B1788 #88171B #548817 #178883
square
#4B1788 #88171B #548817 #178883
split-complementary
#4B1788 #888317 #1B8817
monochromatic
#11051F #2E0E54 #4B1788 #6820BC #863BDE

Accessibility & contrast

On white

11.82
#4B1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4B1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1788
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1788#FFFFFF#000000##FFFFFF
##4B17881.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#3B3750
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4b1788;
/* rgb */ color: rgb(75, 23, 136);
/* oklch */ color: oklch(36.0% 0.170 297.7);
Tailwind
colors: {
  custom: {
    50: '#845cac',
    500: '#4b1788',
    950: '#000000',
  },
}
SCSS
$custom: #4b1788;
$custom-light: #845cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1788",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 267.611,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3601,
    "c": 0.16976,
    "h": 297.7
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#4B1788
secondary
#82BC3F
accent
#EE3A9B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B1788

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

Preview Lab → · Contrast checker → · Palette generator →

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