#7E71BB#7E71BB

#7E71BB is a mid, moderate violet. Relative luminance 0.198; OKLCH L 59.2% C 0.111 H 290.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7E71BB
RGBrgb(126, 113, 187)
HSLhsl(251, 35%, 59%)
HSVhsv(251, 40%, 73%)
CMYKcmyk(32.6%, 39.6%, 0%, 26.7%)
CIE-LABlab(51.65, 22.13, -37.25)
CIE-LCHlch(51.65, 43.33, 300.71°)
OKLaboklab(59.19% 0.0393 -0.1043)
OKLCHoklch(59.19% 0.111 290.6)
XYZxyz(23.4766, 19.8332, 49.5954)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E71BB #AEBB71
analogous
#7189BB #7E71BB #A371BB
triadic
#7E71BB #BB7E71 #71BB7E
tetradic
#7E71BB #BB7189 #AEBB71 #71BBA3
square
#7E71BB #BB7189 #AEBB71 #71BBA3
split-complementary
#7E71BB #BBA371 #89BB71
monochromatic
#453A78 #5C4DA1 #7E71BB #A49ACF #C9C4E3

Accessibility & contrast

On white

4.23
#7E71BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7E71BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E71BB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E71BB#FFFFFF#000000##000000
##7E71BB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7CBE
Deuteranopia (green-blind)
#5B7AB9
Tritanopia (blue-blind)
#6F7F8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e71bb;
/* rgb */ color: rgb(126, 113, 187);
/* oklch */ color: oklch(59.2% 0.111 290.6);
Tailwind
colors: {
  custom: {
    50: '#a59ad0',
    500: '#7e71bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e71bb;
$custom-light: #a59ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e71bb",
  "rgb": {
    "r": 126,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 250.541,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59187,
    "c": 0.11145,
    "h": 290.6
  },
  "luminance": 0.19834
}

Semantic roles & 50–950 ramp

primary
#7E71BB
secondary
#CDD2B5
accent
#CB5DB8
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #7E71BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7E71BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva