#7866C8#7866C8

#7866C8 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.3% C 0.147 H 289.4°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7866C8
RGBrgb(120, 102, 200)
HSLhsl(251, 47%, 59%)
HSVhsv(251, 49%, 78%)
CMYKcmyk(40%, 49%, 0%, 21.6%)
CIE-LABlab(49.09, 30.66, -48.81)
CIE-LCHlch(49.09, 57.65, 302.14°)
OKLaboklab(57.35% 0.0487 -0.1382)
OKLCHoklch(57.35% 0.147 289.4)
XYZxyz(22.9196, 17.6652, 56.8345)
Luminance0.1767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866C8 #B6C866
analogous
#6685C8 #7866C8 #A966C8
triadic
#7866C8 #C87866 #66C878
tetradic
#7866C8 #C86685 #B6C866 #66C8A9
square
#7866C8 #C86685 #B6C866 #66C8A9
split-complementary
#7866C8 #C8A966 #85C866
monochromatic
#3F2F84 #5540B1 #7866C8 #A093D8 #C7C0E8

Accessibility & contrast

On white

4.63
#7866C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7866C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7866C8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866C8#FFFFFF#000000##FFFFFF
##7866C81.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F77CB
Deuteranopia (green-blind)
#4072C6
Tritanopia (blue-blind)
#627A8D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7866c8;
/* rgb */ color: rgb(120, 102, 200);
/* oklch */ color: oklch(57.3% 0.147 289.4);
Tailwind
colors: {
  custom: {
    50: '#a392d9',
    500: '#7866c8',
    950: '#000000',
  },
}
SCSS
$custom: #7866c8;
$custom-light: #a392d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7866c8",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 200
  },
  "hsl": {
    "h": 251.02,
    "s": 47.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57348,
    "c": 0.14653,
    "h": 289.4
  },
  "luminance": 0.17666
}

Semantic roles & 50–950 ramp

primary
#7866C8
secondary
#D1D8B2
accent
#D751BE
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0D15
muted
#7F7D83

Preview Lab

Preview with #7866C8

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

Preview Lab → · Contrast checker → · Palette generator →

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