#712A98#712A98

#712A98 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.174 H 310.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#712A98
RGBrgb(113, 42, 152)
HSLhsl(279, 57%, 38%)
HSVhsv(279, 72%, 60%)
CMYKcmyk(25.7%, 72.4%, 0%, 40.4%)
CIE-LABlab(32.77, 49.37, -46.67)
CIE-LCHlch(32.77, 67.94, 316.61°)
OKLaboklab(44.23% 0.1137 -0.132)
OKLCHoklch(44.23% 0.174 310.7)
XYZxyz(13.3044, 7.4339, 30.4337)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712A98 #51982A
analogous
#3A2A98 #712A98 #982A88
triadic
#712A98 #98712A #2A9871
tetradic
#712A98 #983A2A #51982A #2A8898
square
#712A98 #983A2A #51982A #2A8898
split-complementary
#712A98 #88982A #2A983A
monochromatic
#2A1038 #4D1D68 #712A98 #9537C8 #AE67D5

Accessibility & contrast

On white

8.44
#712A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#712A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712A98
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712A98#FFFFFF#000000##FFFFFF
##712A981.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9B
Deuteranopia (green-blind)
#184E96
Tritanopia (blue-blind)
#6C425E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #712a98;
/* rgb */ color: rgb(113, 42, 152);
/* oklch */ color: oklch(44.2% 0.174 310.7);
Tailwind
colors: {
  custom: {
    50: '#9e6ab7',
    500: '#712a98',
    950: '#000000',
  },
}
SCSS
$custom: #712a98;
$custom-light: #9e6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#712a98",
  "rgb": {
    "r": 113,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 278.727,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44234,
    "c": 0.17422,
    "h": 310.7
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#712A98
secondary
#82BB62
accent
#E0487E
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #712A98

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

Preview Lab → · Contrast checker → · Palette generator →

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