#4B1381#4B1381

#4B1381 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.166 H 300.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4B1381
RGBrgb(75, 19, 129)
HSLhsl(271, 74%, 29%)
HSVhsv(271, 85%, 51%)
CMYKcmyk(41.9%, 85.3%, 0%, 49.4%)
CIE-LABlab(22.11, 46.26, -49.98)
CIE-LCHlch(22.11, 68.11, 312.79°)
OKLaboklab(34.99% 0.0844 -0.143)
OKLCHoklch(34.99% 0.166 300.5)
XYZxyz(7.0960, 3.5465, 21.0753)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1381 #498113
analogous
#141381 #4B1381 #811380
triadic
#4B1381 #814B13 #13814B
tetradic
#4B1381 #811413 #498113 #138081
square
#4B1381 #811413 #498113 #138081
split-complementary
#4B1381 #808113 #138114
monochromatic
#10041B #2C0B4C #4B1381 #6A1BB6 #892EE0

Accessibility & contrast

On white

12.29
#4B1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4B1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1381
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1381#FFFFFF#000000##FFFFFF
##4B13811.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#3E334C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4b1381;
/* rgb */ color: rgb(75, 19, 129);
/* oklch */ color: oklch(35.0% 0.166 300.5);
Tailwind
colors: {
  custom: {
    50: '#845aa7',
    500: '#4b1381',
    950: '#000000',
  },
}
SCSS
$custom: #4b1381;
$custom-light: #845aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1381",
  "rgb": {
    "r": 75,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 270.545,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34989,
    "c": 0.16599,
    "h": 300.5
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#4B1381
secondary
#77B63A
accent
#F13792
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4B1381

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

Preview Lab → · Contrast checker → · Palette generator →

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