#7031B8#7031B8

#7031B8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.199 H 300.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7031B8
RGBrgb(112, 49, 184)
HSLhsl(268, 58%, 46%)
HSVhsv(268, 73%, 72%)
CMYKcmyk(39.1%, 73.4%, 0%, 27.8%)
CIE-LABlab(36.18, 53.62, -60.35)
CIE-LCHlch(36.18, 80.73, 311.62°)
OKLaboklab(47.38% 0.0996 -0.1723)
OKLCHoklch(47.38% 0.199 300)
XYZxyz(16.4300, 9.1019, 46.2293)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031B8 #79B831
analogous
#3135B8 #7031B8 #B331B8
triadic
#7031B8 #B87031 #31B870
tetradic
#7031B8 #B83135 #79B831 #31B8B3
square
#7031B8 #B83135 #79B831 #31B8B3
split-complementary
#7031B8 #B8B331 #35B831
monochromatic
#351757 #532488 #7031B8 #8F55D2 #AF85DE

Accessibility & contrast

On white

7.45
#7031B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7031B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031B8
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031B8#FFFFFF#000000##FFFFFF
##7031B81.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#5F5372
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7031b8;
/* rgb */ color: rgb(112, 49, 184);
/* oklch */ color: oklch(47.4% 0.199 300.0);
Tailwind
colors: {
  custom: {
    50: '#9f6fce',
    500: '#7031b8',
    950: '#000000',
  },
}
SCSS
$custom: #7031b8;
$custom-light: #9f6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7031b8",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 268,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47384,
    "c": 0.19901,
    "h": 300
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7031B8

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

Preview Lab → · Contrast checker → · Palette generator →

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