#472298#472298

#472298 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.177 H 289.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#472298
RGBrgb(71, 34, 152)
HSLhsl(259, 63%, 36%)
HSVhsv(259, 78%, 60%)
CMYKcmyk(53.3%, 77.6%, 0%, 40.4%)
CIE-LABlab(26.01, 45.43, -57.93)
CIE-LCHlch(26.01, 73.61, 308.10°)
OKLaboklab(38.26% 0.0592 -0.1665)
OKLCHoklch(38.26% 0.177 289.6)
XYZxyz(8.8364, 4.7502, 30.1510)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#472298 #739822
analogous
#223898 #472298 #822298
triadic
#472298 #984722 #229847
tetradic
#472298 #982238 #739822 #229882
square
#472298 #982238 #739822 #229882
split-complementary
#472298 #988222 #389822
monochromatic
#180C34 #301766 #472298 #5E2DCA #825ADA

Accessibility & contrast

On white

10.77
#472298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#472298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #472298
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##472298#FFFFFF#000000##FFFFFF
##4722981.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#29435C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #472298;
/* rgb */ color: rgb(71, 34, 152);
/* oklch */ color: oklch(38.3% 0.177 289.6);
Tailwind
colors: {
  custom: {
    50: '#8362b7',
    500: '#472298',
    950: '#000000',
  },
}
SCSS
$custom: #472298;
$custom-light: #8362b7;
$custom-dark: #000000;
JSON
{
  "hex": "#472298",
  "rgb": {
    "r": 71,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 258.814,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38262,
    "c": 0.17672,
    "h": 289.6
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#472298
secondary
#9EBE57
accent
#E641B3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #472298

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

Preview Lab → · Contrast checker → · Palette generator →

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