#AF79CB#AF79CB

#AF79CB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.2% C 0.131 H 313.4°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#AF79CB
RGBrgb(175, 121, 203)
HSLhsl(280, 44%, 64%)
HSVhsv(280, 40%, 80%)
CMYKcmyk(13.8%, 40.4%, 0%, 20.4%)
CIE-LABlab(59.07, 35.82, -34.41)
CIE-LCHlch(59.07, 49.67, 316.14°)
OKLaboklab(66.16% 0.09 -0.0951)
OKLCHoklch(66.16% 0.131 313.4)
XYZxyz(35.2943, 27.1012, 59.8601)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF79CB #95CB79
analogous
#8679CB #AF79CB #CB79BE
triadic
#AF79CB #CBAF79 #79CBAF
tetradic
#AF79CB #CB8679 #95CB79 #79BECB
square
#AF79CB #CB8679 #95CB79 #79BECB
split-complementary
#AF79CB #BECB79 #79CB86
monochromatic
#733891 #954DBA #AF79CB #C9A5DC #E4D1ED

Accessibility & contrast

On white

3.27
#AF79CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#AF79CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF79CB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF79CB#FFFFFF#000000##000000
##AF79CB1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8BCE
Deuteranopia (green-blind)
#7790C9
Tritanopia (blue-blind)
#AD8498
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af79cb;
/* rgb */ color: rgb(175, 121, 203);
/* oklch */ color: oklch(66.2% 0.131 313.4);
Tailwind
colors: {
  custom: {
    50: '#c8a0db',
    500: '#af79cb',
    950: '#000000',
  },
}
SCSS
$custom: #af79cb;
$custom-light: #c8a0db;
$custom-dark: #000000;
JSON
{
  "hex": "#af79cb",
  "rgb": {
    "r": 175,
    "g": 121,
    "b": 203
  },
  "hsl": {
    "h": 279.512,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.66162,
    "c": 0.13095,
    "h": 313.4
  },
  "luminance": 0.27101
}

Semantic roles & 50–950 ramp

primary
#AF79CB
secondary
#CBDEC1
accent
#B72E5D
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130F15
muted
#827E83

Preview Lab

Preview with #AF79CB

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

Preview Lab → · Contrast checker → · Palette generator →

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