#4B2371#4B2371

#4B2371 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.130 H 304.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4B2371
RGBrgb(75, 35, 113)
HSLhsl(271, 53%, 29%)
HSVhsv(271, 69%, 44%)
CMYKcmyk(33.6%, 69%, 0%, 55.7%)
CIE-LABlab(23.31, 34.87, -37.84)
CIE-LCHlch(23.31, 51.45, 312.66°)
OKLaboklab(35.41% 0.0725 -0.1074)
OKLCHoklch(35.41% 0.13 304)
XYZxyz(6.4826, 3.8902, 16.0289)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2371 #497123
analogous
#242371 #4B2371 #712370
triadic
#4B2371 #714B23 #23714B
tetradic
#4B2371 #712423 #497123 #237071
square
#4B2371 #712423 #497123 #237071
split-complementary
#4B2371 #707123 #237124
monochromatic
#100717 #2C1542 #4B2371 #6A31A0 #8948C6

Accessibility & contrast

On white

11.81
#4B2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4B2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2371
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2371#FFFFFF#000000##FFFFFF
##4B23711.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#09376F
Tritanopia (blue-blind)
#443447
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b2371;
/* rgb */ color: rgb(75, 35, 113);
/* oklch */ color: oklch(35.4% 0.130 304.0);
Tailwind
colors: {
  custom: {
    50: '#81619a',
    500: '#4b2371',
    950: '#000000',
  },
}
SCSS
$custom: #4b2371;
$custom-light: #81619a;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2371",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 270.769,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35406,
    "c": 0.12959,
    "h": 304
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#4B2371
secondary
#77A44C
accent
#DC4C92
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4B2371

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

Preview Lab → · Contrast checker → · Palette generator →

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