#47127E#47127E

#47127E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.163 H 299.3°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#47127E
RGBrgb(71, 18, 126)
HSLhsl(269, 75%, 28%)
HSVhsv(269, 86%, 49%)
CMYKcmyk(43.7%, 85.7%, 0%, 50.6%)
CIE-LABlab(21.13, 45.28, -49.72)
CIE-LCHlch(21.13, 67.24, 312.32°)
OKLaboklab(34.1% 0.0797 -0.1423)
OKLCHoklch(34.1% 0.163 299.3)
XYZxyz(6.5798, 3.2785, 20.0208)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47127E #497E12
analogous
#12137E #47127E #7D127E
triadic
#47127E #7E4712 #127E47
tetradic
#47127E #7E1213 #497E12 #127E7D
square
#47127E #7E1213 #497E12 #127E7D
split-complementary
#47127E #7E7D12 #137E12
monochromatic
#0F041B #290A48 #47127E #651AB4 #842AE1

Accessibility & contrast

On white

12.68
#47127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #47127E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47127E#FFFFFF#000000##FFFFFF
##47127E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #47127e;
/* rgb */ color: rgb(71, 18, 126);
/* oklch */ color: oklch(34.1% 0.163 299.3);
Tailwind
colors: {
  custom: {
    50: '#8158a4',
    500: '#47127e',
    950: '#000000',
  },
}
SCSS
$custom: #47127e;
$custom-light: #8158a4;
$custom-dark: #000000;
JSON
{
  "hex": "#47127e",
  "rgb": {
    "r": 71,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 269.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.16313,
    "h": 299.3
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#47127E
secondary
#77B438
accent
#F23696
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47127E

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

Preview Lab → · Contrast checker → · Palette generator →

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