#71227F#71227F

#71227F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.6% C 0.160 H 321.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#71227F
RGBrgb(113, 34, 127)
HSLhsl(291, 58%, 32%)
HSVhsv(291, 73%, 50%)
CMYKcmyk(11%, 73.2%, 0%, 50.2%)
CIE-LABlab(29.88, 47.46, -35.85)
CIE-LCHlch(29.88, 59.48, 322.93°)
OKLaboklab(41.63% 0.1247 -0.1003)
OKLCHoklch(41.63% 0.16 321.2)
XYZxyz(11.2124, 6.1877, 20.6783)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#71227F #307F22
analogous
#43227F #71227F #7F225F
triadic
#71227F #7F7122 #227F71
tetradic
#71227F #7F4322 #307F22 #225F7F
square
#71227F #7F4322 #307F22 #225F7F
split-complementary
#71227F #5F7F22 #227F43
monochromatic
#1B081E #46154F #71227F #9C2FAF #BB4CCF

Accessibility & contrast

On white

9.39
#71227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#71227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #71227F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##71227F#FFFFFF#000000##FFFFFF
##71227F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#2D497D
Tritanopia (blue-blind)
#72334E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #71227f;
/* rgb */ color: rgb(113, 34, 127);
/* oklch */ color: oklch(41.6% 0.160 321.2);
Tailwind
colors: {
  custom: {
    50: '#9d65a5',
    500: '#71227f',
    950: '#000000',
  },
}
SCSS
$custom: #71227f;
$custom-light: #9d65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#71227f",
  "rgb": {
    "r": 113,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 290.968,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.41627,
    "c": 0.16002,
    "h": 321.2
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#71227F
secondary
#5BB24B
accent
#E1475E
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0F060F
muted
#7E7A7F

Preview Lab

Preview with #71227F

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

Preview Lab → · Contrast checker → · Palette generator →

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