#C8AFEF#C8AFEF

#C8AFEF is a light, moderate violet. Relative luminance 0.492; OKLCH L 79.8% C 0.093 H 302.2°. Best body text is #000000 at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#C8AFEF
RGBrgb(200, 175, 239)
HSLhsl(263, 67%, 81%)
HSVhsv(263, 27%, 94%)
CMYKcmyk(16.3%, 26.8%, 0%, 6.3%)
CIE-LABlab(75.56, 21.32, -28.62)
CIE-LCHlch(75.56, 35.68, 306.69°)
OKLaboklab(79.76% 0.0495 -0.0784)
OKLCHoklch(79.76% 0.093 302.2)
XYZxyz(54.7262, 49.1713, 88.2525)
Luminance0.4917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8AFEF #D6EFAF
analogous
#AFB6EF #C8AFEF #E8AFEF
triadic
#C8AFEF #EFC8AF #AFEFC8
tetradic
#C8AFEF #EFAFB6 #D6EFAF #AFEFE8
square
#C8AFEF #EFAFB6 #D6EFAF #AFEFE8
split-complementary
#C8AFEF #EFE8AF #B6EFAF
monochromatic
#8249DB #A57CE5 #C8AFEF #EBE2F9 #EDE5FA

Accessibility & contrast

On white

1.94
#C8AFEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.83
#C8AFEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8AFEF
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8AFEF#FFFFFF#000000##000000
##C8AFEF1.001.9410.8310.83
#FFFFFF1.941.0021.0021.00
#00000010.8321.001.001.00
##00000010.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2BAF2
Deuteranopia (green-blind)
#A7BAED
Tritanopia (blue-blind)
#C2B8C5
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #c8afef;
/* rgb */ color: rgb(200, 175, 239);
/* oklch */ color: oklch(79.8% 0.093 302.2);
Tailwind
colors: {
  custom: {
    50: '#d9c7f4',
    500: '#c8afef',
    950: '#000000',
  },
}
SCSS
$custom: #c8afef;
$custom-light: #d9c7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c8afef",
  "rgb": {
    "r": 200,
    "g": 175,
    "b": 239
  },
  "hsl": {
    "h": 263.438,
    "s": 66.667,
    "l": 81.176
  },
  "oklch": {
    "l": 0.79755,
    "c": 0.09273,
    "h": 302.2
  },
  "luminance": 0.49171
}

Semantic roles & 50–950 ramp

primary
#C8AFEF
secondary
#E8F1DA
accent
#CF1787
background
#FDFCFE
surface
#FAF8FD
border
#D3D1D5
text
#141317
muted
#838285

Preview Lab

Preview with #C8AFEF

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

Preview Lab → · Contrast checker → · Palette generator →

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