#7031BB#7031BB

#7031BB is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.202 H 299.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7031BB
RGBrgb(112, 49, 187)
HSLhsl(267, 58%, 46%)
HSVhsv(267, 74%, 73%)
CMYKcmyk(40.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(36.42, 54.36, -61.73)
CIE-LCHlch(36.42, 82.25, 311.37°)
OKLaboklab(47.63% 0.0989 -0.1764)
OKLCHoklch(47.63% 0.202 299.3)
XYZxyz(16.7478, 9.2290, 47.9031)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031BB #7CBB31
analogous
#3137BB #7031BB #B531BB
triadic
#7031BB #BB7031 #31BB70
tetradic
#7031BB #BB3137 #7CBB31 #31BBB5
square
#7031BB #BB3137 #7CBB31 #31BBB5
split-complementary
#7031BB #BBB531 #37BB31
monochromatic
#36185A #53248B #7031BB #8F56D3 #AF87E0

Accessibility & contrast

On white

7.38
#7031BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7031BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031BB
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031BB#FFFFFF#000000##FFFFFF
##7031BB1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#5E5473
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7031bb;
/* rgb */ color: rgb(112, 49, 187);
/* oklch */ color: oklch(47.6% 0.202 299.3);
Tailwind
colors: {
  custom: {
    50: '#a06fd0',
    500: '#7031bb',
    950: '#000000',
  },
}
SCSS
$custom: #7031bb;
$custom-light: #a06fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7031bb",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 267.391,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4763,
    "c": 0.20221,
    "h": 299.3
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#7031BB
secondary
#A7C97F
accent
#E2469B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7031BB

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

Preview Lab → · Contrast checker → · Palette generator →

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