#7E7FA2#7E7FA2

#7E7FA2 is a mid, muted blue. Relative luminance 0.222; OKLCH L 60.8% C 0.053 H 283.4°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7E7FA2
RGBrgb(126, 127, 162)
HSLhsl(238, 16%, 56%)
HSVhsv(238, 22%, 64%)
CMYKcmyk(22.2%, 21.6%, 0%, 36.5%)
CIE-LABlab(54.26, 7.42, -18.76)
CIE-LCHlch(54.26, 20.18, 291.59°)
OKLaboklab(60.85% 0.0123 -0.0514)
OKLCHoklch(60.85% 0.053 283.4)
XYZxyz(22.7136, 22.2226, 37.2681)
Luminance0.2222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7FA2 #A2A17E
analogous
#7E91A2 #7E7FA2 #8F7EA2
triadic
#7E7FA2 #A27E7F #7FA27E
tetradic
#7E7FA2 #A27E91 #A2A17E #7EA28F
square
#7E7FA2 #A27E91 #A2A17E #7EA28F
split-complementary
#7E7FA2 #A28F7E #91A27E
monochromatic
#454660 #5F6084 #7E7FA2 #A2A2BC #C5C6D5

Accessibility & contrast

On white

3.86
#7E7FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#7E7FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7FA2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7FA2#FFFFFF#000000##000000
##7E7FA21.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7683A4
Deuteranopia (green-blind)
#7581A1
Tritanopia (blue-blind)
#76858B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7e7fa2;
/* rgb */ color: rgb(126, 127, 162);
/* oklch */ color: oklch(60.8% 0.053 283.4);
Tailwind
colors: {
  custom: {
    50: '#a4a4bd',
    500: '#7e7fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7e7fa2;
$custom-light: #a4a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7fa2",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 238.333,
    "s": 16.216,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60846,
    "c": 0.05284,
    "h": 283.4
  },
  "luminance": 0.22223
}

Semantic roles & 50–950 ramp

primary
#7E7FA2
secondary
#C5C5B7
accent
#B76FB9
background
#FAFAFB
surface
#F4F4F6
border
#CECED0
text
#0F0F12
muted
#7F7F81

Preview Lab

Preview with #7E7FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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