#712172#712172

#712172 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.7% C 0.150 H 327.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#712172
RGBrgb(113, 33, 114)
HSLhsl(299, 55%, 29%)
HSVhsv(299, 71%, 45%)
CMYKcmyk(0.9%, 71.1%, 0%, 55.3%)
CIE-LABlab(28.94, 45.38, -29.13)
CIE-LCHlch(28.94, 53.92, 327.30°)
OKLaboklab(40.69% 0.126 -0.0807)
OKLCHoklch(40.69% 0.15 327.4)
XYZxyz(10.3910, 5.8140, 16.4912)
Luminance0.0581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712172 #227221
analogous
#492172 #712172 #72214B
triadic
#712172 #727121 #217271
tetradic
#712172 #724921 #227221 #214B72
square
#712172 #724921 #227221 #214B72
split-complementary
#712172 #4B7221 #217249
monochromatic
#180718 #421343 #712172 #A02FA1 #C744C9

Accessibility & contrast

On white

9.71
#712172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#712172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712172
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712172#FFFFFF#000000##FFFFFF
##7121721.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E74
Deuteranopia (green-blind)
#354870
Tritanopia (blue-blind)
#742D47
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #712172;
/* rgb */ color: rgb(113, 33, 114);
/* oklch */ color: oklch(40.7% 0.150 327.4);
Tailwind
colors: {
  custom: {
    50: '#9d649b',
    500: '#712172',
    950: '#000000',
  },
}
SCSS
$custom: #712172;
$custom-light: #9d649b;
$custom-dark: #000000;
JSON
{
  "hex": "#712172",
  "rgb": {
    "r": 113,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 299.259,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.40693,
    "c": 0.14964,
    "h": 327.4
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#712172
secondary
#4AA549
accent
#DE494B
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0F060E
muted
#7E7A7E

Preview Lab

Preview with #712172

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

Preview Lab → · Contrast checker → · Palette generator →

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