#7031BA#7031BA

#7031BA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.201 H 299.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7031BA
RGBrgb(112, 49, 186)
HSLhsl(268, 58%, 46%)
HSVhsv(268, 74%, 73%)
CMYKcmyk(39.8%, 73.7%, 0%, 27.1%)
CIE-LABlab(36.34, 54.11, -61.27)
CIE-LCHlch(36.34, 81.75, 311.45°)
OKLaboklab(47.55% 0.0991 -0.175)
OKLCHoklch(47.55% 0.201 299.5)
XYZxyz(16.6411, 9.1863, 47.3413)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031BA #7BBA31
analogous
#3136BA #7031BA #B431BA
triadic
#7031BA #BA7031 #31BA70
tetradic
#7031BA #BA3136 #7BBA31 #31BAB4
square
#7031BA #BA3136 #7BBA31 #31BAB4
split-complementary
#7031BA #BAB431 #36BA31
monochromatic
#361759 #53248A #7031BA #8F56D2 #AF86DF

Accessibility & contrast

On white

7.40
#7031BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7031BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031BA
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031BA#FFFFFF#000000##FFFFFF
##7031BA1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#5F5473
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7031ba;
/* rgb */ color: rgb(112, 49, 186);
/* oklch */ color: oklch(47.5% 0.201 299.5);
Tailwind
colors: {
  custom: {
    50: '#9f6fd0',
    500: '#7031ba',
    950: '#000000',
  },
}
SCSS
$custom: #7031ba;
$custom-light: #9f6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7031ba",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 267.591,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47547,
    "c": 0.20114,
    "h": 299.5
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#7031BA
secondary
#A6C97E
accent
#E2469A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7031BA

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

Preview Lab → · Contrast checker → · Palette generator →

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