#7E66CC#7E66CC

#7E66CC is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.1% C 0.152 H 291.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7E66CC
RGBrgb(126, 102, 204)
HSLhsl(254, 50%, 60%)
HSVhsv(254, 50%, 80%)
CMYKcmyk(38.2%, 50%, 0%, 20%)
CIE-LABlab(49.85, 33.27, -49.85)
CIE-LCHlch(49.85, 59.93, 303.72°)
OKLaboklab(58.13% 0.0565 -0.1411)
OKLCHoklch(58.13% 0.152 291.8)
XYZxyz(24.2517, 18.2974, 59.3690)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E66CC #B4CC66
analogous
#6681CC #7E66CC #B166CC
triadic
#7E66CC #CC7E66 #66CC7E
tetradic
#7E66CC #CC6681 #B4CC66 #66CCB1
square
#7E66CC #CC6681 #B4CC66 #66CCB1
split-complementary
#7E66CC #CCB166 #81CC66
monochromatic
#442E8A #5A3DB8 #7E66CC #A594DB #CBC2EB

Accessibility & contrast

On white

4.51
#7E66CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#7E66CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E66CC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E66CC#FFFFFF#000000##000000
##7E66CC1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E78D0
Deuteranopia (green-blind)
#4175CA
Tritanopia (blue-blind)
#6A7B8F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e66cc;
/* rgb */ color: rgb(126, 102, 204);
/* oklch */ color: oklch(58.1% 0.152 291.8);
Tailwind
colors: {
  custom: {
    50: '#a792dc',
    500: '#7e66cc',
    950: '#000000',
  },
}
SCSS
$custom: #7e66cc;
$custom-light: #a792dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e66cc",
  "rgb": {
    "r": 126,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 254.118,
    "s": 50,
    "l": 60
  },
  "oklch": {
    "l": 0.58127,
    "c": 0.15196,
    "h": 291.8
  },
  "luminance": 0.18298
}

Semantic roles & 50–950 ramp

primary
#7E66CC
secondary
#D1DBB3
accent
#DA4EB9
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #7E66CC

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

Preview Lab → · Contrast checker → · Palette generator →

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