#4B1B87#4B1B87

#4B1B87 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.165 H 297.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4B1B87
RGBrgb(75, 27, 135)
HSLhsl(267, 67%, 32%)
HSVhsv(267, 80%, 53%)
CMYKcmyk(44.4%, 80%, 0%, 47.1%)
CIE-LABlab(23.77, 44.62, -51.05)
CIE-LCHlch(23.77, 67.80, 311.16°)
OKLaboklab(36.31% 0.0762 -0.1462)
OKLCHoklch(36.31% 0.165 297.5)
XYZxyz(7.6656, 4.0288, 23.2907)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1B87 #57871B
analogous
#1B2187 #4B1B87 #811B87
triadic
#4B1B87 #874B1B #1B874B
tetradic
#4B1B87 #871B21 #57871B #1B8781
square
#4B1B87 #871B21 #57871B #1B8781
split-complementary
#4B1B87 #87811B #21871B
monochromatic
#120721 #2F1154 #4B1B87 #6725BA #8643D9

Accessibility & contrast

On white

11.63
#4B1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4B1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1B87
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1B87#FFFFFF#000000##FFFFFF
##4B1B871.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#3B3951
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b1b87;
/* rgb */ color: rgb(75, 27, 135);
/* oklch */ color: oklch(36.3% 0.165 297.5);
Tailwind
colors: {
  custom: {
    50: '#845eab',
    500: '#4b1b87',
    950: '#000000',
  },
}
SCSS
$custom: #4b1b87;
$custom-light: #845eab;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1b87",
  "rgb": {
    "r": 75,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 266.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36312,
    "c": 0.16482,
    "h": 297.5
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#4B1B87
secondary
#85BA44
accent
#EA3E9D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #4B1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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