#7866CD#7866CD

#7866CD is a mid, vivid violet. Relative luminance 0.179; OKLCH L 57.7% C 0.153 H 288.7°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7866CD
RGBrgb(120, 102, 205)
HSLhsl(250, 51%, 60%)
HSVhsv(250, 50%, 80%)
CMYKcmyk(41.5%, 50.2%, 0%, 19.6%)
CIE-LABlab(49.38, 32.08, -51.21)
CIE-LCHlch(49.38, 60.43, 302.06°)
OKLaboklab(57.66% 0.0491 -0.1452)
OKLCHoklch(57.66% 0.153 288.7)
XYZxyz(23.5135, 17.9028, 59.9625)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866CD #BBCD66
analogous
#6688CD #7866CD #AB66CD
triadic
#7866CD #CD7866 #66CD78
tetradic
#7866CD #CD6688 #BBCD66 #66CDAB
square
#7866CD #CD6688 #BBCD66 #66CDAB
split-complementary
#7866CD #CDAB66 #88CD66
monochromatic
#3E2D8B #523DB9 #7866CD #A194DC #C9C2EB

Accessibility & contrast

On white

4.58
#7866CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7866CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7866CD
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866CD#FFFFFF#000000##000000
##7866CD1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B78D1
Deuteranopia (green-blind)
#3B73CB
Tritanopia (blue-blind)
#607B90
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7866cd;
/* rgb */ color: rgb(120, 102, 205);
/* oklch */ color: oklch(57.7% 0.153 288.7);
Tailwind
colors: {
  custom: {
    50: '#a392dd',
    500: '#7866cd',
    950: '#000000',
  },
}
SCSS
$custom: #7866cd;
$custom-light: #a392dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7866cd",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 250.485,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5766,
    "c": 0.15333,
    "h": 288.7
  },
  "luminance": 0.17904
}

Semantic roles & 50–950 ramp

primary
#7866CD
secondary
#D4DBB4
accent
#BE27A4
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7866CD

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

Preview Lab → · Contrast checker → · Palette generator →

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