#7031BD#7031BD

#7031BD is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.204 H 298.8°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7031BD
RGBrgb(112, 49, 189)
HSLhsl(267, 59%, 47%)
HSVhsv(267, 74%, 74%)
CMYKcmyk(40.7%, 74.1%, 0%, 25.9%)
CIE-LABlab(36.58, 54.85, -62.64)
CIE-LCHlch(36.58, 83.26, 311.21°)
OKLaboklab(47.8% 0.0985 -0.179)
OKLCHoklch(47.8% 0.204 298.8)
XYZxyz(16.9634, 9.3153, 49.0385)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031BD #7EBD31
analogous
#3138BD #7031BD #B631BD
triadic
#7031BD #BD7031 #31BD70
tetradic
#7031BD #BD3138 #7EBD31 #31BDB6
square
#7031BD #BD3138 #7EBD31 #31BDB6
split-complementary
#7031BD #BDB631 #38BD31
monochromatic
#36185C #53248C #7031BD #8F58D4 #B088E0

Accessibility & contrast

On white

7.33
#7031BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7031BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031BD
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031BD#FFFFFF#000000##FFFFFF
##7031BD1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#5D5575
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7031bd;
/* rgb */ color: rgb(112, 49, 189);
/* oklch */ color: oklch(47.8% 0.204 298.8);
Tailwind
colors: {
  custom: {
    50: '#a06fd2',
    500: '#7031bd',
    950: '#000000',
  },
}
SCSS
$custom: #7031bd;
$custom-light: #a06fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7031bd",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 267,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.20433,
    "h": 298.8
  },
  "luminance": 0.09315
}

Semantic roles & 50–950 ramp

primary
#7031BD
secondary
#A9CA80
accent
#E2469C
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #7031BD

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

Preview Lab → · Contrast checker → · Palette generator →

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