#712D8E#712D8E

#712D8E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.160 H 314.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#712D8E
RGBrgb(113, 45, 142)
HSLhsl(282, 52%, 37%)
HSVhsv(282, 68%, 56%)
CMYKcmyk(20.4%, 68.3%, 0%, 44.3%)
CIE-LABlab(32.57, 45.79, -40.87)
CIE-LCHlch(32.57, 61.38, 318.25°)
OKLaboklab(43.87% 0.1113 -0.115)
OKLCHoklch(43.87% 0.16 314.1)
XYZxyz(12.6301, 7.3409, 26.3376)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712D8E #4A8E2D
analogous
#412D8E #712D8E #8E2D7B
triadic
#712D8E #8E712D #2D8E71
tetradic
#712D8E #8E412D #4A8E2D #2D7B8E
square
#712D8E #8E412D #4A8E2D #2D7B8E
split-complementary
#712D8E #7B8E2D #2D8E41
monochromatic
#271031 #4C1E60 #712D8E #963CBC #B067CF

Accessibility & contrast

On white

8.51
#712D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#712D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712D8E
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712D8E#FFFFFF#000000##FFFFFF
##712D8E1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#284E8C
Tritanopia (blue-blind)
#6E405A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #712d8e;
/* rgb */ color: rgb(113, 45, 142);
/* oklch */ color: oklch(43.9% 0.160 314.1);
Tailwind
colors: {
  custom: {
    50: '#9d6bb0',
    500: '#712d8e',
    950: '#000000',
  },
}
SCSS
$custom: #712d8e;
$custom-light: #9d6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#712d8e",
  "rgb": {
    "r": 113,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 282.062,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43869,
    "c": 0.16008,
    "h": 314.1
  },
  "luminance": 0.0734
}

Semantic roles & 50–950 ramp

primary
#712D8E
secondary
#7BB561
accent
#DB4C77
background
#F9F6FA
surface
#F2ECF5
border
#CCC7CF
text
#0F0710
muted
#7E7A7F

Preview Lab

Preview with #712D8E

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

Preview Lab → · Contrast checker → · Palette generator →

#712D8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva