#7866AE#7866AE

#7866AE is a mid, moderate violet. Relative luminance 0.166; OKLCH L 55.8% C 0.110 H 294.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7866AE
RGBrgb(120, 102, 174)
HSLhsl(255, 31%, 54%)
HSVhsv(255, 41%, 68%)
CMYKcmyk(31%, 41.4%, 0%, 31.8%)
CIE-LABlab(47.69, 23.54, -35.97)
CIE-LCHlch(47.69, 42.99, 303.20°)
OKLaboklab(55.84% 0.0449 -0.1007)
OKLCHoklch(55.84% 0.11 294)
XYZxyz(20.1352, 16.5515, 42.1701)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866AE #9CAE66
analogous
#6678AE #7866AE #9C66AE
triadic
#7866AE #AE7866 #66AE78
tetradic
#7866AE #AE6678 #9CAE66 #66AE9C
square
#7866AE #AE6678 #9CAE66 #66AE9C
split-complementary
#7866AE #AE9C66 #78AE66
monochromatic
#413564 #5B4A8C #7866AE #9B8EC3 #BFB6D8

Accessibility & contrast

On white

4.87
#7866AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7866AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7866AE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866AE#FFFFFF#000000##FFFFFF
##7866AE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5172B1
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#6C7382
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7866ae;
/* rgb */ color: rgb(120, 102, 174);
/* oklch */ color: oklch(55.8% 0.110 294.0);
Tailwind
colors: {
  custom: {
    50: '#a192c6',
    500: '#7866ae',
    950: '#000000',
  },
}
SCSS
$custom: #7866ae;
$custom-light: #a192c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7866ae",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 174
  },
  "hsl": {
    "h": 255,
    "s": 30.769,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5584,
    "c": 0.11028,
    "h": 294
  },
  "luminance": 0.16552
}

Semantic roles & 50–950 ramp

primary
#7866AE
secondary
#C0C7A9
accent
#C761AD
background
#FAF8FC
surface
#F3F0F8
border
#CDCBD1
text
#0F0D13
muted
#7F7D82

Preview Lab

Preview with #7866AE

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

Preview Lab → · Contrast checker → · Palette generator →

#7866AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva