#47127F#47127F

#47127F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.164 H 298.9°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#47127F
RGBrgb(71, 18, 127)
HSLhsl(269, 75%, 28%)
HSVhsv(269, 86%, 50%)
CMYKcmyk(44.1%, 85.8%, 0%, 50.2%)
CIE-LABlab(21.22, 45.53, -50.19)
CIE-LCHlch(21.22, 67.76, 312.21°)
OKLaboklab(34.19% 0.0794 -0.1437)
OKLCHoklch(34.19% 0.164 298.9)
XYZxyz(6.6446, 3.3044, 20.3623)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47127F #4A7F12
analogous
#12147F #47127F #7D127F
triadic
#47127F #7F4712 #127F47
tetradic
#47127F #7F1214 #4A7F12 #127F7D
square
#47127F #7F1214 #4A7F12 #127F7D
split-complementary
#47127F #7F7D12 #147F12
monochromatic
#0F041B #290A49 #47127F #651AB5 #832BE1

Accessibility & contrast

On white

12.64
#47127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#47127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47127F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47127F#FFFFFF#000000##FFFFFF
##47127F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#39324A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #47127f;
/* rgb */ color: rgb(71, 18, 127);
/* oklch */ color: oklch(34.2% 0.164 298.9);
Tailwind
colors: {
  custom: {
    50: '#8159a5',
    500: '#47127f',
    950: '#000000',
  },
}
SCSS
$custom: #47127f;
$custom-light: #8159a5;
$custom-dark: #000000;
JSON
{
  "hex": "#47127f",
  "rgb": {
    "r": 71,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 269.174,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34194,
    "c": 0.16417,
    "h": 298.9
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#47127F
secondary
#78B538
accent
#F23696
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47127F

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

Preview Lab → · Contrast checker → · Palette generator →

#47127F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva