#7F66EA#7F66EA

#7F66EA is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.2% C 0.191 H 288.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7F66EA
RGBrgb(127, 102, 234)
HSLhsl(251, 76%, 66%)
HSVhsv(251, 56%, 92%)
CMYKcmyk(45.7%, 56.4%, 0%, 8.2%)
CIE-LABlab(51.79, 41.90, -63.74)
CIE-LCHlch(51.79, 76.28, 303.32°)
OKLaboklab(60.17% 0.059 -0.1819)
OKLCHoklch(60.17% 0.191 288)
XYZxyz(28.3508, 19.9541, 80.1837)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F66EA #D1EA66
analogous
#668FEA #7F66EA #C166EA
triadic
#7F66EA #EA7F66 #66EA7F
tetradic
#7F66EA #EA668F #D1EA66 #66EAC1
square
#7F66EA #EA668F #D1EA66 #66EAC1
split-complementary
#7F66EA #EAC166 #8FEA66
monochromatic
#381ABC #5230E3 #7F66EA #AC9CF1 #D9D2F9

Accessibility & contrast

On white

4.21
#7F66EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7F66EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F66EA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F66EA#FFFFFF#000000##000000
##7F66EA1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C7EEE
Deuteranopia (green-blind)
#0F78E7
Tritanopia (blue-blind)
#5D839E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7f66ea;
/* rgb */ color: rgb(127, 102, 234);
/* oklch */ color: oklch(60.2% 0.191 288.0);
Tailwind
colors: {
  custom: {
    50: '#ab92f1',
    500: '#7f66ea',
    950: '#000000',
  },
}
SCSS
$custom: #7f66ea;
$custom-light: #ab92f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f66ea",
  "rgb": {
    "r": 127,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 251.364,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60173,
    "c": 0.19117,
    "h": 288
  },
  "luminance": 0.19955
}

Semantic roles & 50–950 ramp

primary
#7F66EA
secondary
#E3ECC0
accent
#D80DB2
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#110D17
muted
#807E85

Preview Lab

Preview with #7F66EA

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

Preview Lab → · Contrast checker → · Palette generator →

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