#AF8EDA#AF8EDA

#AF8EDA is a light, moderate violet. Relative luminance 0.335; OKLCH L 70.5% C 0.114 H 303.6°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#AF8EDA
RGBrgb(175, 142, 218)
HSLhsl(266, 51%, 71%)
HSVhsv(266, 35%, 85%)
CMYKcmyk(19.7%, 34.9%, 0%, 14.5%)
CIE-LABlab(64.58, 27.38, -34.24)
CIE-LCHlch(64.58, 43.84, 308.65°)
OKLaboklab(70.55% 0.0628 -0.0947)
OKLCHoklch(70.55% 0.114 303.6)
XYZxyz(40.0045, 33.5220, 70.6789)
Luminance0.3352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF8EDA #B9DA8E
analogous
#8E93DA #AF8EDA #D58EDA
triadic
#AF8EDA #DAAF8E #8EDAAF
tetradic
#AF8EDA #DA8E93 #B9DA8E #8EDAD5
square
#AF8EDA #DA8E93 #B9DA8E #8EDAD5
split-complementary
#AF8EDA #DAD58E #93DA8E
monochromatic
#6F3BB3 #8E60CB #AF8EDA #D0BCE9 #EFE8F7

Accessibility & contrast

On white

2.73
#AF8EDA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#AF8EDA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF8EDA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF8EDA#FFFFFF#000000##000000
##AF8EDA1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D9CDD
Deuteranopia (green-blind)
#849DD8
Tritanopia (blue-blind)
#A89AAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af8eda;
/* rgb */ color: rgb(175, 142, 218);
/* oklch */ color: oklch(70.5% 0.114 303.6);
Tailwind
colors: {
  custom: {
    50: '#c8afe5',
    500: '#af8eda',
    950: '#000000',
  },
}
SCSS
$custom: #af8eda;
$custom-light: #c8afe5;
$custom-dark: #000000;
JSON
{
  "hex": "#af8eda",
  "rgb": {
    "r": 175,
    "g": 142,
    "b": 218
  },
  "hsl": {
    "h": 266.053,
    "s": 50.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.70549,
    "c": 0.11364,
    "h": 303.6
  },
  "luminance": 0.33522
}

Semantic roles & 50–950 ramp

primary
#AF8EDA
secondary
#E3ECD8
accent
#BE277D
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AF8EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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