#712C9E#712C9E

#712C9E is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.178 H 308.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#712C9E
RGBrgb(113, 44, 158)
HSLhsl(276, 56%, 40%)
HSVhsv(276, 72%, 62%)
CMYKcmyk(28.5%, 72.2%, 0%, 38%)
CIE-LABlab(33.52, 49.85, -49.11)
CIE-LCHlch(33.52, 69.98, 315.43°)
OKLaboklab(44.9% 0.1107 -0.1392)
OKLCHoklch(44.9% 0.178 308.5)
XYZxyz(13.8810, 7.7809, 33.1117)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712C9E #599E2C
analogous
#382C9E #712C9E #9E2C92
triadic
#712C9E #9E712C #2C9E71
tetradic
#712C9E #9E382C #599E2C #2C929E
square
#712C9E #9E382C #599E2C #2C929E
split-complementary
#712C9E #929E2C #2C9E38
monochromatic
#2D113E #4F1F6E #712C9E #923EC9 #AD6ED7

Accessibility & contrast

On white

8.22
#712C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#712C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712C9E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712C9E#FFFFFF#000000##FFFFFF
##712C9E1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#0E509C
Tritanopia (blue-blind)
#6A4662
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #712c9e;
/* rgb */ color: rgb(113, 44, 158);
/* oklch */ color: oklch(44.9% 0.178 308.5);
Tailwind
colors: {
  custom: {
    50: '#9e6bbb',
    500: '#712c9e',
    950: '#000000',
  },
}
SCSS
$custom: #712c9e;
$custom-light: #9e6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#712c9e",
  "rgb": {
    "r": 113,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 276.316,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44903,
    "c": 0.17787,
    "h": 308.5
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#712C9E
secondary
#8ABE68
accent
#E04884
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #712C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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