#7031B2#7031B2

#7031B2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.193 H 301.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7031B2
RGBrgb(112, 49, 178)
HSLhsl(269, 57%, 45%)
HSVhsv(269, 72%, 70%)
CMYKcmyk(37.1%, 72.5%, 0%, 30.2%)
CIE-LABlab(35.70, 52.14, -57.57)
CIE-LCHlch(35.70, 77.67, 312.16°)
OKLaboklab(46.9% 0.1008 -0.1641)
OKLCHoklch(46.9% 0.193 301.5)
XYZxyz(15.8143, 8.8556, 42.9870)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031B2 #73B231
analogous
#3133B2 #7031B2 #B031B2
triadic
#7031B2 #B27031 #31B270
tetradic
#7031B2 #B23133 #73B231 #31B2B0
square
#7031B2 #B23133 #73B231 #31B2B0
split-complementary
#7031B2 #B2B031 #33B231
monochromatic
#341752 #522482 #7031B2 #8F51CF #AE81DC

Accessibility & contrast

On white

7.58
#7031B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7031B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031B2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031B2#FFFFFF#000000##FFFFFF
##7031B21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0053AF
Tritanopia (blue-blind)
#62516E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7031b2;
/* rgb */ color: rgb(112, 49, 178);
/* oklch */ color: oklch(46.9% 0.193 301.5);
Tailwind
colors: {
  custom: {
    50: '#9f6fca',
    500: '#7031b2',
    950: '#000000',
  },
}
SCSS
$custom: #7031b2;
$custom-light: #9f6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7031b2",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 269.302,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46899,
    "c": 0.19262,
    "h": 301.5
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#7031B2
secondary
#A0C579
accent
#E04896
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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