#712F9C#712F9C

#712F9C is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.172 H 308.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#712F9C
RGBrgb(113, 47, 156)
HSLhsl(276, 54%, 40%)
HSVhsv(276, 70%, 61%)
CMYKcmyk(27.6%, 69.9%, 0%, 38.8%)
CIE-LABlab(33.87, 48.02, -47.34)
CIE-LCHlch(33.87, 67.43, 315.41°)
OKLaboklab(45.1% 0.1077 -0.134)
OKLCHoklch(45.1% 0.172 308.8)
XYZxyz(13.8261, 7.9443, 32.2511)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712F9C #5A9C2F
analogous
#3A2F9C #712F9C #9C2F91
triadic
#712F9C #9C712F #2F9C71
tetradic
#712F9C #9C3A2F #5A9C2F #2F919C
square
#712F9C #9C3A2F #5A9C2F #2F919C
split-complementary
#712F9C #919C2F #2F9C3A
monochromatic
#2D133E #4F216D #712F9C #9242C6 #AD71D4

Accessibility & contrast

On white

8.11
#712F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#712F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712F9C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712F9C#FFFFFF#000000##FFFFFF
##712F9C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#18509A
Tritanopia (blue-blind)
#6B4762
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #712f9c;
/* rgb */ color: rgb(113, 47, 156);
/* oklch */ color: oklch(45.1% 0.172 308.8);
Tailwind
colors: {
  custom: {
    50: '#9e6dba',
    500: '#712f9c',
    950: '#000000',
  },
}
SCSS
$custom: #712f9c;
$custom-light: #9e6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#712f9c",
  "rgb": {
    "r": 113,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 276.33,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45103,
    "c": 0.17196,
    "h": 308.8
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#712F9C
secondary
#8BBC6B
accent
#DD4B84
background
#FAF6FB
surface
#F3ECF6
border
#CDC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #712F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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