#712D98#712D98

#712D98 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.170 H 310.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#712D98
RGBrgb(113, 45, 152)
HSLhsl(278, 54%, 39%)
HSVhsv(278, 70%, 60%)
CMYKcmyk(25.7%, 70.4%, 0%, 40.4%)
CIE-LABlab(33.25, 48.03, -45.90)
CIE-LCHlch(33.25, 66.43, 316.30°)
OKLaboklab(44.58% 0.1104 -0.1298)
OKLCHoklch(44.58% 0.17 310.4)
XYZxyz(13.4148, 7.6548, 30.4705)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712D98 #54982D
analogous
#3B2D98 #712D98 #982D89
triadic
#712D98 #98712D #2D9871
tetradic
#712D98 #983B2D #54982D #2D8998
square
#712D98 #983B2D #54982D #2D8998
split-complementary
#712D98 #89982D #2D983B
monochromatic
#2B113A #4E1F69 #712D98 #943DC5 #AE6CD3

Accessibility & contrast

On white

8.30
#712D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#712D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712D98
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712D98#FFFFFF#000000##FFFFFF
##712D981.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#1C4F96
Tritanopia (blue-blind)
#6C445F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #712d98;
/* rgb */ color: rgb(113, 45, 152);
/* oklch */ color: oklch(44.6% 0.170 310.4);
Tailwind
colors: {
  custom: {
    50: '#9e6cb7',
    500: '#712d98',
    950: '#000000',
  },
}
SCSS
$custom: #712d98;
$custom-light: #9e6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#712d98",
  "rgb": {
    "r": 113,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 278.131,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44575,
    "c": 0.1704,
    "h": 310.4
  },
  "luminance": 0.07654
}

Semantic roles & 50–950 ramp

primary
#712D98
secondary
#85BA66
accent
#DE4A80
background
#FAF6FB
surface
#F3ECF6
border
#CDC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #712D98

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

Preview Lab → · Contrast checker → · Palette generator →

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