#4A2371#4A2371

#4A2371 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.129 H 303.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4A2371
RGBrgb(74, 35, 113)
HSLhsl(270, 53%, 29%)
HSVhsv(270, 69%, 44%)
CMYKcmyk(34.5%, 69%, 0%, 55.7%)
CIE-LABlab(23.17, 34.63, -38.06)
CIE-LCHlch(23.17, 51.46, 312.30°)
OKLaboklab(35.28% 0.071 -0.1081)
OKLCHoklch(35.28% 0.129 303.3)
XYZxyz(6.4050, 3.8502, 16.0253)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2371 #4A7123
analogous
#232371 #4A2371 #712371
triadic
#4A2371 #714A23 #23714A
tetradic
#4A2371 #712323 #4A7123 #237171
square
#4A2371 #712323 #4A7123 #237171
split-complementary
#4A2371 #717123 #237123
monochromatic
#0F0717 #2B1542 #4A2371 #6931A0 #8748C6

Accessibility & contrast

On white

11.86
#4A2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4A2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2371
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2371#FFFFFF#000000##FFFFFF
##4A23711.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#07376F
Tritanopia (blue-blind)
#423447
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a2371;
/* rgb */ color: rgb(74, 35, 113);
/* oklch */ color: oklch(35.3% 0.129 303.3);
Tailwind
colors: {
  custom: {
    50: '#80619a',
    500: '#4a2371',
    950: '#000000',
  },
}
SCSS
$custom: #4a2371;
$custom-light: #80619a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2371",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 270,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35279,
    "c": 0.12935,
    "h": 303.3
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#4A2371
secondary
#78A44C
accent
#DC4C94
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #4A2371

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

Preview Lab → · Contrast checker → · Palette generator →

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