#AF7ECB#AF7ECB

#AF7ECB is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.0% C 0.122 H 312.6°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#AF7ECB
RGBrgb(175, 126, 203)
HSLhsl(278, 43%, 65%)
HSVhsv(278, 38%, 80%)
CMYKcmyk(13.8%, 37.9%, 0%, 20.4%)
CIE-LABlab(60.20, 33.03, -32.65)
CIE-LCHlch(60.20, 46.44, 315.33°)
OKLaboklab(67.02% 0.0827 -0.09)
OKLCHoklch(67.02% 0.122 312.6)
XYZxyz(35.9177, 28.3481, 60.0679)
Luminance0.2835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ECB #9ACB7E
analogous
#897ECB #AF7ECB #CB7EC0
triadic
#AF7ECB #CBAF7E #7ECBAF
tetradic
#AF7ECB #CB897E #9ACB7E #7EC0CB
square
#AF7ECB #CB897E #9ACB7E #7EC0CB
split-complementary
#AF7ECB #C0CB7E #7ECB89
monochromatic
#733B93 #9452B9 #AF7ECB #CAAADD #E5D5EE

Accessibility & contrast

On white

3.15
#AF7ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#AF7ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7ECB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7ECB#FFFFFF#000000##000000
##AF7ECB1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#708ECE
Deuteranopia (green-blind)
#7C92C9
Tritanopia (blue-blind)
#AD899B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7ecb;
/* rgb */ color: rgb(175, 126, 203);
/* oklch */ color: oklch(67.0% 0.122 312.6);
Tailwind
colors: {
  custom: {
    50: '#c8a4db',
    500: '#af7ecb',
    950: '#000000',
  },
}
SCSS
$custom: #af7ecb;
$custom-light: #c8a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ecb",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 278.182,
    "s": 42.541,
    "l": 64.51
  },
  "oklch": {
    "l": 0.67017,
    "c": 0.12226,
    "h": 312.6
  },
  "luminance": 0.28347
}

Semantic roles & 50–950 ramp

primary
#AF7ECB
secondary
#CFE0C5
accent
#B63061
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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