#47177F#47177F

#47177F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.160 H 298.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#47177F
RGBrgb(71, 23, 127)
HSLhsl(268, 69%, 29%)
HSVhsv(268, 82%, 50%)
CMYKcmyk(44.1%, 81.9%, 0%, 50.2%)
CIE-LABlab(21.89, 43.59, -49.10)
CIE-LCHlch(21.89, 65.66, 311.60°)
OKLaboklab(34.66% 0.0756 -0.1406)
OKLCHoklch(34.66% 0.16 298.3)
XYZxyz(6.7347, 3.4846, 20.3923)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47177F #4F7F17
analogous
#171B7F #47177F #7B177F
triadic
#47177F #7F4717 #177F47
tetradic
#47177F #7F171B #4F7F17 #177F7B
square
#47177F #7F171B #4F7F17 #177F7B
split-complementary
#47177F #7F7B17 #1B7F17
monochromatic
#0E051A #2A0E4B #47177F #6420B3 #8236DB

Accessibility & contrast

On white

12.37
#47177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#47177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47177F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47177F#FFFFFF#000000##FFFFFF
##47177F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#39344B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #47177f;
/* rgb */ color: rgb(71, 23, 127);
/* oklch */ color: oklch(34.7% 0.160 298.3);
Tailwind
colors: {
  custom: {
    50: '#815ba5',
    500: '#47177f',
    950: '#000000',
  },
}
SCSS
$custom: #47177f;
$custom-light: #815ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#47177f",
  "rgb": {
    "r": 71,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 267.692,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.15961,
    "h": 298.3
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#47177F
secondary
#7DB43E
accent
#EC3C9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #47177F

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

Preview Lab → · Contrast checker → · Palette generator →

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