#7031C2#7031C2

#7031C2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.210 H 297.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7031C2
RGBrgb(112, 49, 194)
HSLhsl(266, 60%, 48%)
HSVhsv(266, 75%, 76%)
CMYKcmyk(42.3%, 74.7%, 0%, 23.9%)
CIE-LABlab(37.00, 56.10, -64.90)
CIE-LCHlch(37.00, 85.79, 310.84°)
OKLaboklab(48.21% 0.0973 -0.1857)
OKLCHoklch(48.21% 0.21 297.7)
XYZxyz(17.5155, 9.5361, 51.9463)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031C2 #83C231
analogous
#313AC2 #7031C2 #B931C2
triadic
#7031C2 #C27031 #31C270
tetradic
#7031C2 #C2313A #83C231 #31C2B9
square
#7031C2 #C2313A #83C231 #31C2B9
split-complementary
#7031C2 #C2B931 #3AC231
monochromatic
#381860 #542591 #7031C2 #905BD6 #B18CE2

Accessibility & contrast

On white

7.22
#7031C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7031C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031C2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031C2#FFFFFF#000000##FFFFFF
##7031C21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#5B5777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7031c2;
/* rgb */ color: rgb(112, 49, 194);
/* oklch */ color: oklch(48.2% 0.210 297.7);
Tailwind
colors: {
  custom: {
    50: '#a06fd5',
    500: '#7031c2',
    950: '#000000',
  },
}
SCSS
$custom: #7031c2;
$custom-light: #a06fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7031c2",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 266.069,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48213,
    "c": 0.20962,
    "h": 297.7
  },
  "luminance": 0.09536
}

Semantic roles & 50–950 ramp

primary
#7031C2
secondary
#ACCC83
accent
#E3459E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7031C2

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

Preview Lab → · Contrast checker → · Palette generator →

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