#4A2271#4A2271

#4A2271 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.1% C 0.131 H 303.5°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#4A2271
RGBrgb(74, 34, 113)
HSLhsl(270, 54%, 29%)
HSVhsv(270, 70%, 44%)
CMYKcmyk(34.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(22.97, 35.18, -38.38)
CIE-LCHlch(22.97, 52.06, 312.51°)
OKLaboklab(35.14% 0.0723 -0.109)
OKLCHoklch(35.14% 0.131 303.5)
XYZxyz(6.3760, 3.7922, 16.0156)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2271 #497122
analogous
#232271 #4A2271 #712271
triadic
#4A2271 #714A22 #22714A
tetradic
#4A2271 #712322 #497122 #227171
square
#4A2271 #712322 #497122 #227171
split-complementary
#4A2271 #717122 #227123
monochromatic
#0F0718 #2B1442 #4A2271 #6930A0 #8846C7

Accessibility & contrast

On white

11.94
#4A2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2271
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2271#FFFFFF#000000##FFFFFF
##4A22711.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a2271;
/* rgb */ color: rgb(74, 34, 113);
/* oklch */ color: oklch(35.1% 0.131 303.5);
Tailwind
colors: {
  custom: {
    50: '#80609a',
    500: '#4a2271',
    950: '#000000',
  },
}
SCSS
$custom: #4a2271;
$custom-light: #80609a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2271",
  "rgb": {
    "r": 74,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 270.38,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35137,
    "c": 0.1308,
    "h": 303.5
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#4A2271
secondary
#77A44A
accent
#DD4B93
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4A2271

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

Preview Lab → · Contrast checker → · Palette generator →

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