#7031C4#7031C4

#7031C4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.4% C 0.212 H 297.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7031C4
RGBrgb(112, 49, 196)
HSLhsl(266, 60%, 48%)
HSVhsv(266, 75%, 77%)
CMYKcmyk(42.9%, 75%, 0%, 23.1%)
CIE-LABlab(37.16, 56.60, -65.80)
CIE-LCHlch(37.16, 86.79, 310.70°)
OKLaboklab(48.38% 0.0968 -0.1883)
OKLCHoklch(48.38% 0.212 297.2)
XYZxyz(17.7416, 9.6265, 53.1372)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031C4 #85C431
analogous
#313CC4 #7031C4 #B931C4
triadic
#7031C4 #C47031 #31C470
tetradic
#7031C4 #C4313C #85C431 #31C4B9
square
#7031C4 #C4313C #85C431 #31C4B9
split-complementary
#7031C4 #C4B931 #3CC431
monochromatic
#381962 #542593 #7031C4 #905CD6 #B28DE2

Accessibility & contrast

On white

7.18
#7031C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7031C4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031C4#FFFFFF#000000##FFFFFF
##7031C41.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#5A5879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7031c4;
/* rgb */ color: rgb(112, 49, 196);
/* oklch */ color: oklch(48.4% 0.212 297.2);
Tailwind
colors: {
  custom: {
    50: '#a170d7',
    500: '#7031c4',
    950: '#000000',
  },
}
SCSS
$custom: #7031c4;
$custom-light: #a170d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7031c4",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 265.714,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.21174,
    "h": 297.2
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#7031C4
secondary
#AECD84
accent
#E3459F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7031C4

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

Preview Lab → · Contrast checker → · Palette generator →

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