#7E70EB#7E70EB

#7E70EB is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.9% C 0.179 H 285.1°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E70EB
RGBrgb(126, 112, 235)
HSLhsl(247, 75%, 68%)
HSVhsv(247, 52%, 92%)
CMYKcmyk(46.4%, 52.3%, 0%, 7.8%)
CIE-LABlab(54.05, 36.17, -60.66)
CIE-LCHlch(54.05, 70.62, 300.81°)
OKLaboklab(61.85% 0.0465 -0.1728)
OKLCHoklch(61.85% 0.179 285.1)
XYZxyz(29.3893, 22.0208, 81.2830)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E70EB #DDEB70
analogous
#709FEB #7E70EB #BB70EB
triadic
#7E70EB #EB7E70 #70EB7E
tetradic
#7E70EB #EB709F #DDEB70 #70EBBB
square
#7E70EB #EB709F #DDEB70 #70EBBB
split-complementary
#7E70EB #EBBB70 #9FEB70
monochromatic
#2F1CC5 #4E3AE3 #7E70EB #AEA6F3 #DFDBFA

Accessibility & contrast

On white

3.89
#7E70EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#7E70EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E70EB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E70EB#FFFFFF#000000##000000
##7E70EB1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3285EF
Deuteranopia (green-blind)
#2D7DE8
Tritanopia (blue-blind)
#598BA3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7e70eb;
/* rgb */ color: rgb(126, 112, 235);
/* oklch */ color: oklch(61.9% 0.179 285.1);
Tailwind
colors: {
  custom: {
    50: '#aa99f2',
    500: '#7e70eb',
    950: '#000000',
  },
}
SCSS
$custom: #7e70eb;
$custom-light: #aa99f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e70eb",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 246.829,
    "s": 75.46,
    "l": 68.039
  },
  "oklch": {
    "l": 0.61852,
    "c": 0.17893,
    "h": 285.1
  },
  "luminance": 0.22022
}

Semantic roles & 50–950 ramp

primary
#7E70EB
secondary
#EAEEC9
accent
#D80EC1
background
#FAF9FE
surface
#F5F2FD
border
#CFCCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7E70EB

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

Preview Lab → · Contrast checker → · Palette generator →

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