#AF7EDA#AF7EDA

#AF7EDA is a light, vivid violet. Relative luminance 0.291; OKLCH L 67.7% C 0.140 H 307.6°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#AF7EDA
RGBrgb(175, 126, 218)
HSLhsl(272, 55%, 67%)
HSVhsv(272, 42%, 85%)
CMYKcmyk(19.7%, 42.2%, 0%, 14.5%)
CIE-LABlab(60.87, 36.34, -40.03)
CIE-LCHlch(60.87, 54.07, 312.23°)
OKLaboklab(67.74% 0.0857 -0.1113)
OKLCHoklch(67.74% 0.14 307.6)
XYZxyz(37.7925, 29.0980, 69.9416)
Luminance0.2910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7EDA #A9DA7E
analogous
#817EDA #AF7EDA #DA7ED7
triadic
#AF7EDA #DAAF7E #7EDAAF
tetradic
#AF7EDA #DA817E #A9DA7E #7ED7DA
square
#AF7EDA #DA817E #A9DA7E #7ED7DA
split-complementary
#AF7EDA #D7DA7E #7EDA81
monochromatic
#7331AC #924ECC #AF7EDA #CCAEE8 #EADDF5

Accessibility & contrast

On white

3.08
#AF7EDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#AF7EDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7EDA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7EDA#FFFFFF#000000##000000
##AF7EDA1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6991DD
Deuteranopia (green-blind)
#7593D8
Tritanopia (blue-blind)
#A98CA2
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7eda;
/* rgb */ color: rgb(175, 126, 218);
/* oklch */ color: oklch(67.7% 0.140 307.6);
Tailwind
colors: {
  custom: {
    50: '#c8a4e6',
    500: '#af7eda',
    950: '#000000',
  },
}
SCSS
$custom: #af7eda;
$custom-light: #c8a4e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eda",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 218
  },
  "hsl": {
    "h": 271.957,
    "s": 55.422,
    "l": 67.451
  },
  "oklch": {
    "l": 0.67738,
    "c": 0.14045,
    "h": 307.6
  },
  "luminance": 0.29098
}

Semantic roles & 50–950 ramp

primary
#AF7EDA
secondary
#D9E8CC
accent
#C3236E
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#130F16
muted
#827F84

Preview Lab

Preview with #AF7EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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