#7E7AF1#7E7AF1

#7E7AF1 is a light, vivid blue. Relative luminance 0.247; OKLCH L 64.0% C 0.173 H 281.8°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7E7AF1
RGBrgb(126, 122, 241)
HSLhsl(242, 81%, 71%)
HSVhsv(242, 49%, 95%)
CMYKcmyk(47.7%, 49.4%, 0%, 5.5%)
CIE-LABlab(56.79, 32.05, -59.61)
CIE-LCHlch(56.79, 67.68, 298.27°)
OKLaboklab(64.02% 0.0356 -0.1696)
OKLCHoklch(64.02% 0.173 281.8)
XYZxyz(31.4361, 24.7040, 86.3139)
Luminance0.2471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7AF1 #EDF17A
analogous
#7AB1F1 #7E7AF1 #B97AF1
triadic
#7E7AF1 #F17E7A #7AF17E
tetradic
#7E7AF1 #F17AB1 #EDF17A #7AF1B9
square
#7E7AF1 #F17AB1 #EDF17A #7AF1B9
split-complementary
#7E7AF1 #F1B97A #B1F17A
monochromatic
#1D17DA #4843EB #7E7AF1 #B4B1F7 #E4E3FC

Accessibility & contrast

On white

3.53
#7E7AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#7E7AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7AF1
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7AF1#FFFFFF#000000##000000
##7E7AF11.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#438CF5
Deuteranopia (green-blind)
#3B84EE
Tritanopia (blue-blind)
#5594AA
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7e7af1;
/* rgb */ color: rgb(126, 122, 241);
/* oklch */ color: oklch(64.0% 0.173 281.8);
Tailwind
colors: {
  custom: {
    50: '#aaa0f6',
    500: '#7e7af1',
    950: '#000000',
  },
}
SCSS
$custom: #7e7af1;
$custom-light: #aaa0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7af1",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 241
  },
  "hsl": {
    "h": 242.017,
    "s": 80.952,
    "l": 71.176
  },
  "oklch": {
    "l": 0.64017,
    "c": 0.17333,
    "h": 281.8
  },
  "luminance": 0.24706
}

Semantic roles & 50–950 ramp

primary
#7E7AF1
secondary
#F2F3D4
accent
#DD08D6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #7E7AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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