#7031B7#7031B7

#7031B7 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.198 H 300.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7031B7
RGBrgb(112, 49, 183)
HSLhsl(268, 58%, 45%)
HSVhsv(268, 73%, 72%)
CMYKcmyk(38.8%, 73.2%, 0%, 28.2%)
CIE-LABlab(36.10, 53.37, -59.89)
CIE-LCHlch(36.10, 80.22, 311.70°)
OKLaboklab(47.3% 0.0998 -0.171)
OKLCHoklch(47.3% 0.198 300.3)
XYZxyz(16.3255, 9.0601, 45.6792)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031B7 #78B731
analogous
#3135B7 #7031B7 #B331B7
triadic
#7031B7 #B77031 #31B770
tetradic
#7031B7 #B73135 #78B731 #31B7B3
square
#7031B7 #B73135 #78B731 #31B7B3
split-complementary
#7031B7 #B7B331 #35B731
monochromatic
#351756 #522487 #7031B7 #8F54D1 #AF84DE

Accessibility & contrast

On white

7.47
#7031B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7031B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031B7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031B7#FFFFFF#000000##FFFFFF
##7031B71.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#605371
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7031b7;
/* rgb */ color: rgb(112, 49, 183);
/* oklch */ color: oklch(47.3% 0.198 300.3);
Tailwind
colors: {
  custom: {
    50: '#9f6fce',
    500: '#7031b7',
    950: '#000000',
  },
}
SCSS
$custom: #7031b7;
$custom-light: #9f6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7031b7",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 268.209,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47302,
    "c": 0.19795,
    "h": 300.3
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#7031B7
secondary
#A4C87C
accent
#E14799
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7031B7

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

Preview Lab → · Contrast checker → · Palette generator →

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