#71228F#71228F

#71228F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.175 H 314.7°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#71228F
RGBrgb(113, 34, 143)
HSLhsl(283, 62%, 35%)
HSVhsv(283, 76%, 56%)
CMYKcmyk(21%, 76.2%, 0%, 43.9%)
CIE-LABlab(30.97, 50.72, -44.07)
CIE-LCHlch(30.97, 67.19, 319.02°)
OKLaboklab(42.75% 0.1231 -0.1243)
OKLCHoklch(42.75% 0.175 314.7)
XYZxyz(12.3392, 6.6384, 26.6126)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#71228F #408F22
analogous
#3A228F #71228F #8F2277
triadic
#71228F #8F7122 #228F71
tetradic
#71228F #8F3A22 #408F22 #22778F
square
#71228F #8F3A22 #408F22 #22778F
split-complementary
#71228F #778F22 #228F3A
monochromatic
#230A2C #4A165E #71228F #982EC0 #B355D7

Accessibility & contrast

On white

9.02
#71228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#71228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #71228F
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##71228F#FFFFFF#000000##FFFFFF
##71228F1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#1C4B8D
Tritanopia (blue-blind)
#6E3A57
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #71228f;
/* rgb */ color: rgb(113, 34, 143);
/* oklch */ color: oklch(42.7% 0.175 314.7);
Tailwind
colors: {
  custom: {
    50: '#9e66b0',
    500: '#71228f',
    950: '#000000',
  },
}
SCSS
$custom: #71228f;
$custom-light: #9e66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#71228f",
  "rgb": {
    "r": 113,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 283.486,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42748,
    "c": 0.17494,
    "h": 314.7
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#71228F
secondary
#6FBA52
accent
#E54370
background
#FAF6FA
surface
#F3EBF5
border
#CDC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #71228F

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

Preview Lab → · Contrast checker → · Palette generator →

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