#47257E#47257E

#47257E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.142 H 296.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#47257E
RGBrgb(71, 37, 126)
HSLhsl(263, 55%, 32%)
HSVhsv(263, 71%, 49%)
CMYKcmyk(43.7%, 70.6%, 0%, 50.6%)
CIE-LABlab(24.22, 36.46, -44.66)
CIE-LCHlch(24.22, 57.65, 309.23°)
OKLaboklab(36.28% 0.0624 -0.1276)
OKLCHoklch(36.28% 0.142 296.1)
XYZxyz(7.0250, 4.1689, 20.1692)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#47257E #5C7E25
analogous
#25307E #47257E #74257E
triadic
#47257E #7E4725 #257E47
tetradic
#47257E #7E2530 #5C7E25 #257E74
square
#47257E #7E2530 #5C7E25 #257E74
split-complementary
#47257E #7E7425 #307E25
monochromatic
#12091F #2C174F #47257E #6233AD #8051CC

Accessibility & contrast

On white

11.45
#47257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#47257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #47257E
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##47257E#FFFFFF#000000##FFFFFF
##47257E1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#393B4E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #47257e;
/* rgb */ color: rgb(71, 37, 126);
/* oklch */ color: oklch(36.3% 0.142 296.1);
Tailwind
colors: {
  custom: {
    50: '#7f62a4',
    500: '#47257e',
    950: '#000000',
  },
}
SCSS
$custom: #47257e;
$custom-light: #7f62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#47257e",
  "rgb": {
    "r": 71,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 262.921,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36275,
    "c": 0.14204,
    "h": 296.1
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#47257E
secondary
#8BB04F
accent
#DE4AA5
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #47257E

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

Preview Lab → · Contrast checker → · Palette generator →

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