#472887#472887

#472887 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.149 H 292.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#472887
RGBrgb(71, 40, 135)
HSLhsl(260, 54%, 34%)
HSVhsv(260, 70%, 53%)
CMYKcmyk(47.4%, 70.4%, 0%, 47.1%)
CIE-LABlab(25.58, 37.39, -48.10)
CIE-LCHlch(25.58, 60.92, 307.86°)
OKLaboklab(37.48% 0.0576 -0.1377)
OKLCHoklch(37.48% 0.149 292.7)
XYZxyz(7.7293, 4.6062, 23.3988)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472887 #688728
analogous
#283987 #472887 #772887
triadic
#472887 #874728 #288747
tetradic
#472887 #872839 #688728 #288777
square
#472887 #872839 #688728 #288777
split-complementary
#472887 #877728 #398728
monochromatic
#150C29 #2E1A58 #472887 #6036B6 #815BCE

Accessibility & contrast

On white

10.93
#472887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#472887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472887
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472887#FFFFFF#000000##FFFFFF
##4728871.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#344054
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #472887;
/* rgb */ color: rgb(71, 40, 135);
/* oklch */ color: oklch(37.5% 0.149 292.7);
Tailwind
colors: {
  custom: {
    50: '#8064ab',
    500: '#472887',
    950: '#000000',
  },
}
SCSS
$custom: #472887;
$custom-light: #8064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#472887",
  "rgb": {
    "r": 71,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 259.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37484,
    "c": 0.14931,
    "h": 292.7
  },
  "luminance": 0.04606
}

Semantic roles & 50–950 ramp

primary
#472887
secondary
#95B457
accent
#DE4AAE
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #472887

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

Preview Lab → · Contrast checker → · Palette generator →

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