#4B1B8A#4B1B8A

#4B1B8A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.168 H 296.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#4B1B8A
RGBrgb(75, 27, 138)
HSLhsl(266, 67%, 32%)
HSVhsv(266, 80%, 54%)
CMYKcmyk(45.7%, 80.4%, 0%, 45.9%)
CIE-LABlab(24.05, 45.41, -52.47)
CIE-LCHlch(24.05, 69.39, 310.87°)
OKLaboklab(36.59% 0.0753 -0.1503)
OKLCHoklch(36.59% 0.168 296.6)
XYZxyz(7.8798, 4.1145, 24.4188)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1B8A #5A8A1B
analogous
#1B228A #4B1B8A #831B8A
triadic
#4B1B8A #8A4B1B #1B8A4B
tetradic
#4B1B8A #8A1B22 #5A8A1B #1B8A83
square
#4B1B8A #8A1B22 #5A8A1B #1B8A83
split-complementary
#4B1B8A #8A831B #228A1B
monochromatic
#130724 #2F1157 #4B1B8A #6725BD #8645DB

Accessibility & contrast

On white

11.52
#4B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1B8A
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1B8A#FFFFFF#000000##FFFFFF
##4B1B8A1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#3A3A52
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b1b8a;
/* rgb */ color: rgb(75, 27, 138);
/* oklch */ color: oklch(36.6% 0.168 296.6);
Tailwind
colors: {
  custom: {
    50: '#845ead',
    500: '#4b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #4b1b8a;
$custom-light: #845ead;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1b8a",
  "rgb": {
    "r": 75,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 265.946,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36593,
    "c": 0.16811,
    "h": 296.6
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

primary
#4B1B8A
secondary
#88BC45
accent
#EA3EA0
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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