#7031C5#7031C5

#7031C5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.213 H 297.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7031C5
RGBrgb(112, 49, 197)
HSLhsl(266, 60%, 48%)
HSVhsv(266, 75%, 77%)
CMYKcmyk(43.1%, 75.1%, 0%, 22.7%)
CIE-LABlab(37.25, 56.85, -66.25)
CIE-LCHlch(37.25, 87.30, 310.63°)
OKLaboklab(48.47% 0.0966 -0.1896)
OKLCHoklch(48.47% 0.213 297)
XYZxyz(17.8558, 9.6722, 53.7387)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031C5 #86C531
analogous
#313CC5 #7031C5 #BA31C5
triadic
#7031C5 #C57031 #31C570
tetradic
#7031C5 #C5313C #86C531 #31C5BA
square
#7031C5 #C5313C #86C531 #31C5BA
split-complementary
#7031C5 #C5BA31 #3CC531
monochromatic
#381963 #542594 #7031C5 #915DD7 #B28EE3

Accessibility & contrast

On white

7.16
#7031C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7031C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031C5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031C5#FFFFFF#000000##FFFFFF
##7031C51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#5A5879
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7031c5;
/* rgb */ color: rgb(112, 49, 197);
/* oklch */ color: oklch(48.5% 0.213 297.0);
Tailwind
colors: {
  custom: {
    50: '#a170d8',
    500: '#7031c5',
    950: '#000000',
  },
}
SCSS
$custom: #7031c5;
$custom-light: #a170d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7031c5",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 265.541,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48467,
    "c": 0.2128,
    "h": 297
  },
  "luminance": 0.09673
}

Semantic roles & 50–950 ramp

primary
#7031C5
secondary
#AECD85
accent
#E344A0
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7031C5

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

Preview Lab → · Contrast checker → · Palette generator →

#7031C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva