#7E66DC#7E66DC

#7E66DC is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.1% C 0.173 H 289.4°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7E66DC
RGBrgb(126, 102, 220)
HSLhsl(252, 63%, 63%)
HSVhsv(252, 54%, 86%)
CMYKcmyk(42.7%, 53.6%, 0%, 13.7%)
CIE-LABlab(50.81, 37.72, -57.42)
CIE-LCHlch(50.81, 68.71, 303.30°)
OKLaboklab(59.15% 0.0575 -0.1633)
OKLCHoklch(59.15% 0.173 289.4)
XYZxyz(26.2702, 19.1048, 69.9997)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E66DC #C4DC66
analogous
#6689DC #7E66DC #B966DC
triadic
#7E66DC #DC7E66 #66DC7E
tetradic
#7E66DC #DC6689 #C4DC66 #66DCB9
square
#7E66DC #DC6689 #C4DC66 #66DCB9
split-complementary
#7E66DC #DCB966 #89DC66
monochromatic
#3F25A2 #5434D1 #7E66DC #A898E7 #D2CAF3

Accessibility & contrast

On white

4.36
#7E66DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#7E66DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E66DC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E66DC#FFFFFF#000000##000000
##7E66DC1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C7BE0
Deuteranopia (green-blind)
#2E76D9
Tritanopia (blue-blind)
#637F97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e66dc;
/* rgb */ color: rgb(126, 102, 220);
/* oklch */ color: oklch(59.1% 0.173 289.4);
Tailwind
colors: {
  custom: {
    50: '#a992e7',
    500: '#7e66dc',
    950: '#000000',
  },
}
SCSS
$custom: #7e66dc;
$custom-light: #a992e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e66dc",
  "rgb": {
    "r": 126,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 252.203,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59146,
    "c": 0.17313,
    "h": 289.4
  },
  "luminance": 0.19106
}

Semantic roles & 50–950 ramp

primary
#7E66DC
secondary
#DBE4BA
accent
#CB1BA7
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #7E66DC

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

Preview Lab → · Contrast checker → · Palette generator →

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