#7E6CF2#7E6CF2

#7E6CF2 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.6% C 0.193 H 285.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7E6CF2
RGBrgb(126, 108, 242)
HSLhsl(248, 84%, 69%)
HSVhsv(248, 55%, 95%)
CMYKcmyk(47.9%, 55.4%, 0%, 5.1%)
CIE-LABlab(53.57, 40.53, -65.34)
CIE-LCHlch(53.57, 76.89, 301.81°)
OKLaboklab(61.64% 0.0512 -0.1866)
OKLCHoklch(61.64% 0.193 285.3)
XYZxyz(29.9890, 21.5701, 86.5705)
Luminance0.2157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E6CF2 #E0F26C
analogous
#6C9DF2 #7E6CF2 #C16CF2
triadic
#7E6CF2 #F27E6C #6CF27E
tetradic
#7E6CF2 #F26C9D #E0F26C #6CF2C1
square
#7E6CF2 #F26C9D #E0F26C #6CF2C1
split-complementary
#7E6CF2 #F2C16C #9DF26C
monochromatic
#2C12D1 #4D34ED #7E6CF2 #AFA4F7 #E1DCFC

Accessibility & contrast

On white

3.95
#7E6CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#7E6CF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E6CF2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E6CF2#FFFFFF#000000##000000
##7E6CF21.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1584F7
Deuteranopia (green-blind)
#0B7CEF
Tritanopia (blue-blind)
#558AA5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7e6cf2;
/* rgb */ color: rgb(126, 108, 242);
/* oklch */ color: oklch(61.6% 0.193 285.3);
Tailwind
colors: {
  custom: {
    50: '#ab96f7',
    500: '#7e6cf2',
    950: '#000000',
  },
}
SCSS
$custom: #7e6cf2;
$custom-light: #ab96f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e6cf2",
  "rgb": {
    "r": 126,
    "g": 108,
    "b": 242
  },
  "hsl": {
    "h": 248.06,
    "s": 83.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61636,
    "c": 0.19345,
    "h": 285.3
  },
  "luminance": 0.21572
}

Semantic roles & 50–950 ramp

primary
#7E6CF2
secondary
#ECF1C9
accent
#E005C3
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D17
muted
#807E85

Preview Lab

Preview with #7E6CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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