#A766F2#A766F2

#A766F2 is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 64.5% C 0.204 H 302.4°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#A766F2
RGBrgb(167, 102, 242)
HSLhsl(268, 84%, 67%)
HSVhsv(268, 58%, 95%)
CMYKcmyk(31%, 57.9%, 0%, 5.1%)
CIE-LABlab(56.22, 52.85, -60.87)
CIE-LCHlch(56.22, 80.61, 310.97°)
OKLaboklab(64.5% 0.1095 -0.1722)
OKLCHoklch(64.5% 0.204 302.4)
XYZxyz(36.7110, 24.1290, 86.7105)
Luminance0.2413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A766F2 #B1F266
analogous
#666BF2 #A766F2 #ED66F2
triadic
#A766F2 #F2A766 #66F2A7
tetradic
#A766F2 #F2666B #B1F266 #66F2ED
square
#A766F2 #F2666B #B1F266 #66F2ED
split-complementary
#A766F2 #F2ED66 #6BF266
monochromatic
#6811CC #872EED #A766F2 #C79EF7 #E8D7FC

Accessibility & contrast

On white

3.60
#A766F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#A766F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A766F2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A766F2#FFFFFF#000000##000000
##A766F21.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2386F7
Deuteranopia (green-blind)
#4286EF
Tritanopia (blue-blind)
#9882A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #a766f2;
/* rgb */ color: rgb(167, 102, 242);
/* oklch */ color: oklch(64.5% 0.204 302.4);
Tailwind
colors: {
  custom: {
    50: '#c594f7',
    500: '#a766f2',
    950: '#000000',
  },
}
SCSS
$custom: #a766f2;
$custom-light: #c594f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a766f2",
  "rgb": {
    "r": 167,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 267.857,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.64504,
    "c": 0.20409,
    "h": 302.4
  },
  "luminance": 0.24129
}

Semantic roles & 50–950 ramp

primary
#A766F2
secondary
#DBF0C4
accent
#E1057B
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130D17
muted
#827E85

Preview Lab

Preview with #A766F2

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

Preview Lab → · Contrast checker → · Palette generator →

#A766F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva