#7866CA#7866CA

#7866CA is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.5% C 0.149 H 289.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7866CA
RGBrgb(120, 102, 202)
HSLhsl(251, 49%, 60%)
HSVhsv(251, 50%, 79%)
CMYKcmyk(40.6%, 49.5%, 0%, 20.8%)
CIE-LABlab(49.20, 31.23, -49.78)
CIE-LCHlch(49.20, 58.76, 302.10°)
OKLaboklab(57.47% 0.0489 -0.141)
OKLCHoklch(57.47% 0.149 289.1)
XYZxyz(23.1548, 17.7593, 58.0736)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7866CA #B8CA66
analogous
#6686CA #7866CA #AA66CA
triadic
#7866CA #CA7866 #66CA78
tetradic
#7866CA #CA6686 #B8CA66 #66CAAA
square
#7866CA #CA6686 #B8CA66 #66CAAA
split-complementary
#7866CA #CAAA66 #86CA66
monochromatic
#3F2F87 #543EB4 #7866CA #A093DA #C8C1E9

Accessibility & contrast

On white

4.61
#7866CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7866CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7866CA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7866CA#FFFFFF#000000##FFFFFF
##7866CA1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E77CE
Deuteranopia (green-blind)
#3E73C8
Tritanopia (blue-blind)
#617A8E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7866ca;
/* rgb */ color: rgb(120, 102, 202);
/* oklch */ color: oklch(57.5% 0.149 289.1);
Tailwind
colors: {
  custom: {
    50: '#a392db',
    500: '#7866ca',
    950: '#000000',
  },
}
SCSS
$custom: #7866ca;
$custom-light: #a392db;
$custom-dark: #000000;
JSON
{
  "hex": "#7866ca",
  "rgb": {
    "r": 120,
    "g": 102,
    "b": 202
  },
  "hsl": {
    "h": 250.8,
    "s": 48.544,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57472,
    "c": 0.14925,
    "h": 289.1
  },
  "luminance": 0.1776
}

Semantic roles & 50–950 ramp

primary
#7866CA
secondary
#D2D9B2
accent
#D850C0
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #7866CA

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

Preview Lab → · Contrast checker → · Palette generator →

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