#4B1F72#4B1F72

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

Color values

HEX#4B1F72
RGBrgb(75, 31, 114)
HSLhsl(272, 57%, 28%)
HSVhsv(272, 73%, 45%)
CMYKcmyk(34.2%, 72.8%, 0%, 55.3%)
CIE-LABlab(22.62, 37.24, -39.58)
CIE-LCHlch(22.62, 54.35, 313.25°)
OKLaboklab(34.94% 0.0772 -0.1125)
OKLCHoklch(34.94% 0.136 304.4)
XYZxyz(6.4282, 3.6908, 16.2901)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B1F72 #46721F
analogous
#211F72 #4B1F72 #721F6F
triadic
#4B1F72 #724B1F #1F724B
tetradic
#4B1F72 #72211F #46721F #1F6F72
square
#4B1F72 #72211F #46721F #1F6F72
split-complementary
#4B1F72 #6F721F #1F7221
monochromatic
#100718 #2B1242 #4B1F72 #6B2CA2 #8A40CB

Accessibility & contrast

On white

12.08
#4B1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4B1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B1F72
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B1F72#FFFFFF#000000##FFFFFF
##4B1F721.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#443246
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4b1f72;
/* rgb */ color: rgb(75, 31, 114);
/* oklch */ color: oklch(34.9% 0.136 304.4);
Tailwind
colors: {
  custom: {
    50: '#815f9b',
    500: '#4b1f72',
    950: '#000000',
  },
}
SCSS
$custom: #4b1f72;
$custom-light: #815f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b1f72",
  "rgb": {
    "r": 75,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 271.807,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34941,
    "c": 0.13643,
    "h": 304.4
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#4B1F72
secondary
#74A647
accent
#E0478F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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