#4B1789#4B1789

#4B1789 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.171 H 297.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4B1789
RGBrgb(75, 23, 137)
HSLhsl(267, 71%, 31%)
HSVhsv(267, 83%, 54%)
CMYKcmyk(45.3%, 83.2%, 0%, 46.3%)
CIE-LABlab(23.39, 46.78, -52.92)
CIE-LCHlch(23.39, 70.64, 311.48°)
OKLaboklab(36.11% 0.0787 -0.1516)
OKLCHoklch(36.11% 0.171 297.4)
XYZxyz(7.7222, 3.9146, 24.0108)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1789 #558917
analogous
#171C89 #4B1789 #841789
triadic
#4B1789 #894B17 #17894B
tetradic
#4B1789 #89171C #558917 #178984
square
#4B1789 #89171C #558917 #178984
split-complementary
#4B1789 #898417 #1C8917
monochromatic
#120520 #2E0E55 #4B1789 #6820BD #863CDE

Accessibility & contrast

On white

11.78
#4B1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B1789
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1789#FFFFFF#000000##FFFFFF
##4B17891.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003687
Tritanopia (blue-blind)
#3A3851
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b1789;
/* rgb */ color: rgb(75, 23, 137);
/* oklch */ color: oklch(36.1% 0.171 297.4);
Tailwind
colors: {
  custom: {
    50: '#845cac',
    500: '#4b1789',
    950: '#000000',
  },
}
SCSS
$custom: #4b1789;
$custom-light: #845cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1789",
  "rgb": {
    "r": 75,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 267.368,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36106,
    "c": 0.17082,
    "h": 297.4
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#4B1789
secondary
#83BD3F
accent
#EE3A9C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B1789

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

Preview Lab → · Contrast checker → · Palette generator →

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