#7031B4#7031B4

#7031B4 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.1% C 0.195 H 301.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7031B4
RGBrgb(112, 49, 180)
HSLhsl(269, 57%, 45%)
HSVhsv(269, 73%, 71%)
CMYKcmyk(37.8%, 72.8%, 0%, 29.4%)
CIE-LABlab(35.86, 52.63, -58.50)
CIE-LCHlch(35.86, 78.69, 311.97°)
OKLaboklab(47.06% 0.1004 -0.1669)
OKLCHoklch(47.06% 0.195 301)
XYZxyz(16.0166, 8.9366, 44.0523)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031B4 #75B431
analogous
#3134B4 #7031B4 #B131B4
triadic
#7031B4 #B47031 #31B470
tetradic
#7031B4 #B43134 #75B431 #31B4B1
square
#7031B4 #B43134 #75B431 #31B4B1
split-complementary
#7031B4 #B4B131 #34B431
monochromatic
#341754 #522484 #7031B4 #8F52D0 #AE82DD

Accessibility & contrast

On white

7.53
#7031B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7031B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031B4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031B4#FFFFFF#000000##FFFFFF
##7031B41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#615170
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7031b4;
/* rgb */ color: rgb(112, 49, 180);
/* oklch */ color: oklch(47.1% 0.195 301.0);
Tailwind
colors: {
  custom: {
    50: '#9f6fcb',
    500: '#7031b4',
    950: '#000000',
  },
}
SCSS
$custom: #7031b4;
$custom-light: #9f6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7031b4",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 268.855,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4706,
    "c": 0.19476,
    "h": 301
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#7031B4
secondary
#A2C67B
accent
#E04797
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031B4

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

Preview Lab → · Contrast checker → · Palette generator →

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