#7E71D1#7E71D1

#7E71D1 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.4% C 0.142 H 287.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7E71D1
RGBrgb(126, 113, 209)
HSLhsl(248, 51%, 63%)
HSVhsv(248, 46%, 82%)
CMYKcmyk(39.7%, 45.9%, 0%, 18%)
CIE-LABlab(52.78, 28.16, -48.03)
CIE-LCHlch(52.78, 55.68, 300.38°)
OKLaboklab(60.42% 0.043 -0.1357)
OKLCHoklch(60.42% 0.142 287.6)
XYZxyz(26.0147, 20.8485, 62.9627)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E71D1 #C4D171
analogous
#7194D1 #7E71D1 #AE71D1
triadic
#7E71D1 #D17E71 #71D17E
tetradic
#7E71D1 #D17194 #C4D171 #71D1AE
square
#7E71D1 #D17194 #C4D171 #71D1AE
split-complementary
#7E71D1 #D1AE71 #94D171
monochromatic
#3F3197 #5443C2 #7E71D1 #A89FE0 #D2CDEF

Accessibility & contrast

On white

4.06
#7E71D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#7E71D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E71D1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E71D1#FFFFFF#000000##000000
##7E71D11.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D80D5
Deuteranopia (green-blind)
#4D7BCF
Tritanopia (blue-blind)
#678497
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e71d1;
/* rgb */ color: rgb(126, 113, 209);
/* oklch */ color: oklch(60.4% 0.142 287.6);
Tailwind
colors: {
  custom: {
    50: '#a79adf',
    500: '#7e71d1',
    950: '#000000',
  },
}
SCSS
$custom: #7e71d1;
$custom-light: #a79adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e71d1",
  "rgb": {
    "r": 126,
    "g": 113,
    "b": 209
  },
  "hsl": {
    "h": 248.125,
    "s": 51.064,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60417,
    "c": 0.14237,
    "h": 287.6
  },
  "luminance": 0.20849
}

Semantic roles & 50–950 ramp

primary
#7E71D1
secondary
#DBE0BE
accent
#BE27AA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #7E71D1

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

Preview Lab → · Contrast checker → · Palette generator →

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