#7031B3#7031B3

#7031B3 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.194 H 301.3°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7031B3
RGBrgb(112, 49, 179)
HSLhsl(269, 57%, 45%)
HSVhsv(269, 73%, 70%)
CMYKcmyk(37.4%, 72.6%, 0%, 29.8%)
CIE-LABlab(35.78, 52.38, -58.04)
CIE-LCHlch(35.78, 78.18, 312.07°)
OKLaboklab(46.98% 0.1006 -0.1655)
OKLCHoklch(46.98% 0.194 301.3)
XYZxyz(15.9151, 8.8960, 43.5177)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031B3 #74B331
analogous
#3133B3 #7031B3 #B131B3
triadic
#7031B3 #B37031 #31B370
tetradic
#7031B3 #B33133 #74B331 #31B3B1
square
#7031B3 #B33133 #74B331 #31B3B1
split-complementary
#7031B3 #B3B131 #33B331
monochromatic
#341753 #522483 #7031B3 #8F52D0 #AE82DD

Accessibility & contrast

On white

7.56
#7031B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7031B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031B3
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031B3#FFFFFF#000000##FFFFFF
##7031B31.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#61516F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7031b3;
/* rgb */ color: rgb(112, 49, 179);
/* oklch */ color: oklch(47.0% 0.194 301.3);
Tailwind
colors: {
  custom: {
    50: '#9f6fcb',
    500: '#7031b3',
    950: '#000000',
  },
}
SCSS
$custom: #7031b3;
$custom-light: #9f6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7031b3",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 269.077,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46979,
    "c": 0.19368,
    "h": 301.3
  },
  "luminance": 0.08896
}

Semantic roles & 50–950 ramp

primary
#7031B3
secondary
#A1C67A
accent
#E04896
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7031B3

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

Preview Lab → · Contrast checker → · Palette generator →

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