#7031B9#7031B9

#7031B9 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.200 H 299.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7031B9
RGBrgb(112, 49, 185)
HSLhsl(268, 58%, 46%)
HSVhsv(268, 74%, 73%)
CMYKcmyk(39.5%, 73.5%, 0%, 27.5%)
CIE-LABlab(36.26, 53.86, -60.81)
CIE-LCHlch(36.26, 81.24, 311.53°)
OKLaboklab(47.47% 0.0993 -0.1737)
OKLCHoklch(47.47% 0.2 299.8)
XYZxyz(16.5352, 9.1440, 46.7833)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7031B9 #7AB931
analogous
#3136B9 #7031B9 #B431B9
triadic
#7031B9 #B97031 #31B970
tetradic
#7031B9 #B93136 #7AB931 #31B9B4
square
#7031B9 #B93136 #7AB931 #31B9B4
split-complementary
#7031B9 #B9B431 #36B931
monochromatic
#351758 #532489 #7031B9 #8F55D2 #AF86DF

Accessibility & contrast

On white

7.42
#7031B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7031B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7031B9
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7031B9#FFFFFF#000000##FFFFFF
##7031B91.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7031b9;
/* rgb */ color: rgb(112, 49, 185);
/* oklch */ color: oklch(47.5% 0.200 299.8);
Tailwind
colors: {
  custom: {
    50: '#9f6fcf',
    500: '#7031b9',
    950: '#000000',
  },
}
SCSS
$custom: #7031b9;
$custom-light: #9f6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7031b9",
  "rgb": {
    "r": 112,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 267.794,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47465,
    "c": 0.20008,
    "h": 299.8
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#7031B9
secondary
#A6C87D
accent
#E1469A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0814
muted
#7F7B82

Preview Lab

Preview with #7031B9

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

Preview Lab → · Contrast checker → · Palette generator →

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