#471772#471772

#471772 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.145 H 303.1°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#471772
RGBrgb(71, 23, 114)
HSLhsl(272, 66%, 27%)
HSVhsv(272, 80%, 45%)
CMYKcmyk(37.7%, 79.8%, 0%, 55.3%)
CIE-LABlab(20.70, 40.24, -42.73)
CIE-LCHlch(20.70, 58.70, 313.28°)
OKLaboklab(33.46% 0.0794 -0.1218)
OKLCHoklch(33.46% 0.145 303.1)
XYZxyz(5.9415, 3.1673, 16.2147)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#471772 #427217
analogous
#191772 #471772 #721770
triadic
#471772 #724717 #177247
tetradic
#471772 #721917 #427217 #177072
square
#471772 #721917 #427217 #177072
split-complementary
#471772 #707217 #177219
monochromatic
#100519 #270D3F #471772 #6721A5 #862ED5

Accessibility & contrast

On white

12.86
#471772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#471772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #471772
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##471772#FFFFFF#000000##FFFFFF
##4717721.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#3E2F44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #471772;
/* rgb */ color: rgb(71, 23, 114);
/* oklch */ color: oklch(33.5% 0.145 303.1);
Tailwind
colors: {
  custom: {
    50: '#7f5a9b',
    500: '#471772',
    950: '#000000',
  },
}
SCSS
$custom: #471772;
$custom-light: #7f5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#471772",
  "rgb": {
    "r": 71,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 271.648,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.14545,
    "h": 303.1
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#471772
secondary
#6FA83D
accent
#E93E8F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #471772

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

Preview Lab → · Contrast checker → · Palette generator →

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