#7E7AA2#7E7AA2

#7E7AA2 is a mid, moderate blue. Relative luminance 0.210; OKLCH L 59.8% C 0.061 H 289.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7E7AA2
RGBrgb(126, 122, 162)
HSLhsl(246, 18%, 56%)
HSVhsv(246, 25%, 64%)
CMYKcmyk(22.2%, 24.7%, 0%, 36.5%)
CIE-LABlab(52.91, 10.36, -20.83)
CIE-LCHlch(52.91, 23.27, 296.45°)
OKLaboklab(59.8% 0.0197 -0.0572)
OKLCHoklch(59.8% 0.061 289)
XYZxyz(22.0838, 20.9630, 37.0582)
Luminance0.2096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7AA2 #9EA27A
analogous
#7A8AA2 #7E7AA2 #927AA2
triadic
#7E7AA2 #A27E7A #7AA27E
tetradic
#7E7AA2 #A27A8A #9EA27A #7AA292
square
#7E7AA2 #A27A8A #9EA27A #7AA292
split-complementary
#7E7AA2 #A2927A #8AA27A
monochromatic
#45425F #605C83 #7E7AA2 #A19EBB #C4C2D4

Accessibility & contrast

On white

4.04
#7E7AA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7E7AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7AA2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7AA2#FFFFFF#000000##000000
##7E7AA21.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#707FA4
Deuteranopia (green-blind)
#707DA1
Tritanopia (blue-blind)
#768188
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e7aa2;
/* rgb */ color: rgb(126, 122, 162);
/* oklch */ color: oklch(59.8% 0.061 289.0);
Tailwind
colors: {
  custom: {
    50: '#a4a0bd',
    500: '#7e7aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7e7aa2;
$custom-light: #a4a0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7aa2",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 162
  },
  "hsl": {
    "h": 246,
    "s": 17.699,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59796,
    "c": 0.06051,
    "h": 289
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

primary
#7E7AA2
secondary
#C3C4B4
accent
#BA6DB3
background
#FAF9FB
surface
#F4F2F6
border
#CECCD0
text
#0F0E12
muted
#7F7E81

Preview Lab

Preview with #7E7AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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