#4B1F71#4B1F71

#4B1F71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.135 H 304.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4B1F71
RGBrgb(75, 31, 113)
HSLhsl(272, 57%, 28%)
HSVhsv(272, 73%, 44%)
CMYKcmyk(33.6%, 72.6%, 0%, 55.7%)
CIE-LABlab(22.54, 36.98, -39.07)
CIE-LCHlch(22.54, 53.80, 313.43°)
OKLaboklab(34.86% 0.0773 -0.111)
OKLCHoklch(34.86% 0.135 304.9)
XYZxyz(6.3716, 3.6681, 15.9919)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F71 #45711F
analogous
#221F71 #4B1F71 #711F6E
triadic
#4B1F71 #714B1F #1F714B
tetradic
#4B1F71 #71221F #45711F #1F6E71
square
#4B1F71 #71221F #45711F #1F6E71
split-complementary
#4B1F71 #6E711F #1F7122
monochromatic
#100718 #2B1241 #4B1F71 #6B2CA1 #8A40CB

Accessibility & contrast

On white

12.11
#4B1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4B1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F71
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F71#FFFFFF#000000##FFFFFF
##4B1F711.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#443245
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1f71;
/* rgb */ color: rgb(75, 31, 113);
/* oklch */ color: oklch(34.9% 0.135 304.9);
Tailwind
colors: {
  custom: {
    50: '#815e9a',
    500: '#4b1f71',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f71;
$custom-light: #815e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f71",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 272.195,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3486,
    "c": 0.13527,
    "h": 304.9
  },
  "luminance": 0.03668
}

Semantic roles & 50–950 ramp

primary
#4B1F71
secondary
#72A547
accent
#E0488E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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