#472277#472277

#472277 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.137 H 299.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#472277
RGBrgb(71, 34, 119)
HSLhsl(266, 56%, 30%)
HSVhsv(266, 71%, 47%)
CMYKcmyk(40.3%, 71.4%, 0%, 53.3%)
CIE-LABlab(23.05, 36.14, -42.12)
CIE-LCHlch(23.05, 55.49, 310.63°)
OKLaboklab(35.26% 0.0669 -0.1201)
OKLCHoklch(35.26% 0.137 299.1)
XYZxyz(6.4995, 3.8155, 17.8432)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472277 #527722
analogous
#222777 #472277 #722277
triadic
#472277 #774722 #227747
tetradic
#472277 #772227 #527722 #227772
square
#472277 #772227 #527722 #227772
split-complementary
#472277 #777222 #277722
monochromatic
#0E0718 #2B1447 #472277 #6330A7 #8149CB

Accessibility & contrast

On white

11.91
#472277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#472277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472277
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472277#FFFFFF#000000##FFFFFF
##4722771.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#3C3649
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #472277;
/* rgb */ color: rgb(71, 34, 119);
/* oklch */ color: oklch(35.3% 0.137 299.1);
Tailwind
colors: {
  custom: {
    50: '#7f609f',
    500: '#472277',
    950: '#000000',
  },
}
SCSS
$custom: #472277;
$custom-light: #7f609f;
$custom-dark: #000000;
JSON
{
  "hex": "#472277",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 266.118,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.35257,
    "c": 0.13748,
    "h": 299.1
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#472277
secondary
#81AA4B
accent
#DF499E
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #472277

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

Preview Lab → · Contrast checker → · Palette generator →

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