#7E7AAA#7E7AAA

#7E7AAA is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.1% C 0.072 H 287.8°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7E7AAA
RGBrgb(126, 122, 170)
HSLhsl(245, 22%, 57%)
HSVhsv(245, 28%, 67%)
CMYKcmyk(25.9%, 28.2%, 0%, 33.3%)
CIE-LABlab(53.23, 12.35, -24.97)
CIE-LCHlch(53.23, 27.86, 296.31°)
OKLaboklab(60.15% 0.0222 -0.069)
OKLCHoklch(60.15% 0.072 287.8)
XYZxyz(22.8176, 21.2566, 40.9232)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7AAA #A6AA7A
analogous
#7A8EAA #7E7AAA #967AAA
triadic
#7E7AAA #AA7E7A #7AAA7E
tetradic
#7E7AAA #AA7A8E #A6AA7A #7AAA96
square
#7E7AAA #AA7A8E #A6AA7A #7AAA96
split-complementary
#7E7AAA #AA967A #8EAA7A
monochromatic
#454267 #5E5A8D #7E7AAA #A29FC2 #C6C5DA

Accessibility & contrast

On white

4.00
#7E7AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#7E7AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7AAA
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7AAA#FFFFFF#000000##000000
##7E7AAA1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D80AC
Deuteranopia (green-blind)
#6D7EA9
Tritanopia (blue-blind)
#74828B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7e7aaa;
/* rgb */ color: rgb(126, 122, 170);
/* oklch */ color: oklch(60.1% 0.072 287.8);
Tailwind
colors: {
  custom: {
    50: '#a4a0c3',
    500: '#7e7aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7e7aaa;
$custom-light: #a4a0c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7aaa",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 170
  },
  "hsl": {
    "h": 245,
    "s": 22.018,
    "l": 57.255
  },
  "oklch": {
    "l": 0.60149,
    "c": 0.07245,
    "h": 287.8
  },
  "luminance": 0.21257
}

Semantic roles & 50–950 ramp

primary
#7E7AAA
secondary
#C8CAB6
accent
#BF69B7
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0E12
muted
#7F7E81

Preview Lab

Preview with #7E7AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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