#C2AFEF#C2AFEF

#C2AFEF is a light, moderate violet. Relative luminance 0.484; OKLCH L 79.2% C 0.091 H 297.9°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#C2AFEF
RGBrgb(194, 175, 239)
HSLhsl(258, 67%, 81%)
HSVhsv(258, 27%, 94%)
CMYKcmyk(18.8%, 26.8%, 0%, 6.3%)
CIE-LABlab(75.05, 19.48, -29.44)
CIE-LCHlch(75.05, 35.30, 303.49°)
OKLaboklab(79.24% 0.0428 -0.0808)
OKLCHoklch(79.24% 0.091 297.9)
XYZxyz(53.1547, 48.3610, 88.1789)
Luminance0.4836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C2AFEF #DCEFAF
analogous
#AFBCEF #C2AFEF #E2AFEF
triadic
#C2AFEF #EFC2AF #AFEFC2
tetradic
#C2AFEF #EFAFBC #DCEFAF #AFEFE2
square
#C2AFEF #EFAFBC #DCEFAF #AFEFE2
split-complementary
#C2AFEF #EFE2AF #BCEFAF
monochromatic
#7449DB #9B7CE5 #C2AFEF #E9E2F9 #ECE5FA

Accessibility & contrast

On white

1.97
#C2AFEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.67
#C2AFEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C2AFEF
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C2AFEF#FFFFFF#000000##000000
##C2AFEF1.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A1B9F2
Deuteranopia (green-blind)
#A4B8ED
Tritanopia (blue-blind)
#BAB9C5
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #c2afef;
/* rgb */ color: rgb(194, 175, 239);
/* oklch */ color: oklch(79.2% 0.091 297.9);
Tailwind
colors: {
  custom: {
    50: '#d5c7f4',
    500: '#c2afef',
    950: '#000000',
  },
}
SCSS
$custom: #c2afef;
$custom-light: #d5c7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c2afef",
  "rgb": {
    "r": 194,
    "g": 175,
    "b": 239
  },
  "hsl": {
    "h": 257.813,
    "s": 66.667,
    "l": 81.176
  },
  "oklch": {
    "l": 0.79244,
    "c": 0.09148,
    "h": 297.9
  },
  "luminance": 0.48361
}

Semantic roles & 50–950 ramp

primary
#C2AFEF
secondary
#EAF1DA
accent
#CF1798
background
#FDFCFE
surface
#FAF8FD
border
#D3D1D5
text
#141317
muted
#838285

Preview Lab

Preview with #C2AFEF

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

Preview Lab → · Contrast checker → · Palette generator →

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