#472271#472271

#472271 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.130 H 301.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#472271
RGBrgb(71, 34, 113)
HSLhsl(268, 54%, 29%)
HSVhsv(268, 70%, 44%)
CMYKcmyk(37.2%, 69.9%, 0%, 55.7%)
CIE-LABlab(22.57, 34.49, -39.05)
CIE-LCHlch(22.57, 52.10, 311.45°)
OKLaboklab(34.76% 0.0678 -0.1111)
OKLCHoklch(34.76% 0.13 301.4)
XYZxyz(6.1505, 3.6759, 16.0051)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472271 #4C7122
analogous
#222571 #472271 #6F2271
triadic
#472271 #714722 #227147
tetradic
#472271 #712225 #4C7122 #22716F
square
#472271 #712225 #4C7122 #22716F
split-complementary
#472271 #716F22 #257122
monochromatic
#0F0718 #291442 #472271 #6530A0 #8346C7

Accessibility & contrast

On white

12.10
#472271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#472271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472271
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472271#FFFFFF#000000##FFFFFF
##4722711.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#3E3446
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #472271;
/* rgb */ color: rgb(71, 34, 113);
/* oklch */ color: oklch(34.8% 0.130 301.4);
Tailwind
colors: {
  custom: {
    50: '#7e609a',
    500: '#472271',
    950: '#000000',
  },
}
SCSS
$custom: #472271;
$custom-light: #7e609a;
$custom-dark: #000000;
JSON
{
  "hex": "#472271",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 268.101,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.13014,
    "h": 301.4
  },
  "luminance": 0.03676
}

Semantic roles & 50–950 ramp

primary
#472271
secondary
#7AA44A
accent
#DD4B99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #472271

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

Preview Lab → · Contrast checker → · Palette generator →

#472271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva