#4B1A87#4B1A87

#4B1A87 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.166 H 297.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4B1A87
RGBrgb(75, 26, 135)
HSLhsl(267, 68%, 32%)
HSVhsv(267, 81%, 53%)
CMYKcmyk(44.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(23.62, 45.05, -51.29)
CIE-LCHlch(23.62, 68.27, 311.29°)
OKLaboklab(36.21% 0.077 -0.1469)
OKLCHoklch(36.21% 0.166 297.7)
XYZxyz(7.6431, 3.9838, 23.2832)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1A87 #56871A
analogous
#1A2087 #4B1A87 #821A87
triadic
#4B1A87 #874B1A #1A874B
tetradic
#4B1A87 #871A20 #56871A #1A8782
square
#4B1A87 #871A20 #56871A #1A8782
split-complementary
#4B1A87 #87821A #20871A
monochromatic
#120620 #2E1054 #4B1A87 #6824BA #8641DA

Accessibility & contrast

On white

11.69
#4B1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4B1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1A87
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1A87#FFFFFF#000000##FFFFFF
##4B1A871.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3B3850
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b1a87;
/* rgb */ color: rgb(75, 26, 135);
/* oklch */ color: oklch(36.2% 0.166 297.7);
Tailwind
colors: {
  custom: {
    50: '#845dab',
    500: '#4b1a87',
    950: '#000000',
  },
}
SCSS
$custom: #4b1a87;
$custom-light: #845dab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1a87",
  "rgb": {
    "r": 75,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 266.972,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36208,
    "c": 0.16584,
    "h": 297.7
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#4B1A87
secondary
#84BA42
accent
#EB3D9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4B1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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