#CF8AFF#CF8AFF

#CF8AFF is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.8% C 0.175 H 310.0°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#CF8AFF
RGBrgb(207, 138, 255)
HSLhsl(275, 100%, 77%)
HSVhsv(275, 46%, 100%)
CMYKcmyk(18.8%, 45.9%, 0%, 0%)
CIE-LABlab(68.51, 46.95, -48.23)
CIE-LCHlch(68.51, 67.31, 314.23°)
OKLaboklab(74.78% 0.1127 -0.1344)
OKLCHoklch(74.78% 0.175 310)
XYZxyz(52.8673, 38.6632, 99.2661)
Luminance0.3866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8AFF #BAFF8A
analogous
#958AFF #CF8AFF #FF8AF4
triadic
#CF8AFF #FFCF8A #8AFFCF
tetradic
#CF8AFF #FF958A #BAFF8A #8AF4FF
square
#CF8AFF #FF958A #BAFF8A #8AF4FF
split-complementary
#CF8AFF #F4FF8A #8AFF95
monochromatic
#9D10FF #B64DFF #CF8AFF #E8C7FF #F2E0FF

Accessibility & contrast

On white

2.40
#CF8AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#CF8AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8AFF
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8AFF#FFFFFF#000000##000000
##CF8AFF1.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA4FF
Deuteranopia (green-blind)
#81A8FC
Tritanopia (blue-blind)
#C99DB9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cf8aff;
/* rgb */ color: rgb(207, 138, 255);
/* oklch */ color: oklch(74.8% 0.175 310.0);
Tailwind
colors: {
  custom: {
    50: '#e0aeff',
    500: '#cf8aff',
    950: '#000000',
  },
}
SCSS
$custom: #cf8aff;
$custom-light: #e0aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8aff",
  "rgb": {
    "r": 207,
    "g": 138,
    "b": 255
  },
  "hsl": {
    "h": 275.385,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74779,
    "c": 0.17536,
    "h": 310
  },
  "luminance": 0.38662
}

Semantic roles & 50–950 ramp

primary
#CF8AFF
secondary
#E2F7D4
accent
#E6005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CF8AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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