#7E71E7#7E71E7

#7E71E7 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.8% C 0.172 H 285.2°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E71E7
RGBrgb(126, 113, 231)
HSLhsl(247, 71%, 67%)
HSVhsv(247, 51%, 91%)
CMYKcmyk(45.5%, 51.1%, 0%, 9.4%)
CIE-LABlab(54.04, 34.43, -58.43)
CIE-LCHlch(54.04, 67.82, 300.51°)
OKLaboklab(61.77% 0.0451 -0.1662)
OKLCHoklch(61.77% 0.172 285.2)
XYZxyz(28.9289, 22.0141, 78.3107)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E71E7 #DAE771
analogous
#719FE7 #7E71E7 #B971E7
triadic
#7E71E7 #E77E71 #71E77E
tetradic
#7E71E7 #E7719F #DAE771 #71E7B9
square
#7E71E7 #E7719F #DAE771 #71E7B9
split-complementary
#7E71E7 #E7B971 #9FE771
monochromatic
#3120BE #4E3DDE #7E71E7 #AEA5F0 #DDDAF9

Accessibility & contrast

On white

3.89
#7E71E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#7E71E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E71E7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E71E7#FFFFFF#000000##000000
##7E71E71.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A85EB
Deuteranopia (green-blind)
#367EE4
Tritanopia (blue-blind)
#5C8AA1
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e71e7;
/* rgb */ color: rgb(126, 113, 231);
/* oklch */ color: oklch(61.8% 0.172 285.2);
Tailwind
colors: {
  custom: {
    50: '#a99aef',
    500: '#7e71e7',
    950: '#000000',
  },
}
SCSS
$custom: #7e71e7;
$custom-light: #a99aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7e71e7",
  "rgb": {
    "r": 126,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 246.61,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.61769,
    "c": 0.17225,
    "h": 285.2
  },
  "luminance": 0.22015
}

Semantic roles & 50–950 ramp

primary
#7E71E7
secondary
#E8ECC7
accent
#D312BE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #7E71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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