#7E71BA#7E71BA

#7E71BA is a mid, moderate violet. Relative luminance 0.198; OKLCH L 59.1% C 0.110 H 290.8°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7E71BA
RGBrgb(126, 113, 186)
HSLhsl(251, 35%, 59%)
HSVhsv(251, 39%, 73%)
CMYKcmyk(32.3%, 39.2%, 0%, 27.1%)
CIE-LABlab(51.60, 21.86, -36.75)
CIE-LCHlch(51.60, 42.76, 300.75°)
OKLaboklab(59.13% 0.0391 -0.1028)
OKLCHoklch(59.13% 0.11 290.8)
XYZxyz(23.3700, 19.7905, 49.0335)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E71BA #ADBA71
analogous
#7188BA #7E71BA #A271BA
triadic
#7E71BA #BA7E71 #71BA7E
tetradic
#7E71BA #BA7188 #ADBA71 #71BAA2
square
#7E71BA #BA7188 #ADBA71 #71BAA2
split-complementary
#7E71BA #BAA271 #88BA71
monochromatic
#453A77 #5C4EA0 #7E71BA #A39ACE #C9C3E2

Accessibility & contrast

On white

4.24
#7E71BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7E71BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E71BA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E71BA#FFFFFF#000000##000000
##7E71BA1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7CBD
Deuteranopia (green-blind)
#5C79B8
Tritanopia (blue-blind)
#707E8D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e71ba;
/* rgb */ color: rgb(126, 113, 186);
/* oklch */ color: oklch(59.1% 0.110 290.8);
Tailwind
colors: {
  custom: {
    50: '#a59acf',
    500: '#7e71ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e71ba;
$custom-light: #a59acf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e71ba",
  "rgb": {
    "r": 126,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 250.685,
    "s": 34.597,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59134,
    "c": 0.11002,
    "h": 290.8
  },
  "luminance": 0.19791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E71BA

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

Preview Lab → · Contrast checker → · Palette generator →

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