#CF8AFA#CF8AFA

#CF8AFA is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.5% C 0.170 H 311.3°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#CF8AFA
RGBrgb(207, 138, 250)
HSLhsl(277, 92%, 76%)
HSVhsv(277, 45%, 98%)
CMYKcmyk(17.2%, 44.8%, 0%, 2%)
CIE-LABlab(68.27, 45.88, -45.86)
CIE-LCHlch(68.27, 64.87, 315.01°)
OKLaboklab(74.53% 0.112 -0.1275)
OKLCHoklch(74.53% 0.17 311.3)
XYZxyz(52.0729, 38.3454, 95.0822)
Luminance0.3834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8AFA #B5FA8A
analogous
#978AFA #CF8AFA #FA8AED
triadic
#CF8AFA #FACF8A #8AFACF
tetradic
#CF8AFA #FA978A #B5FA8A #8AEDFA
square
#CF8AFA #FA978A #B5FA8A #8AEDFA
split-complementary
#CF8AFA #EDFA8A #8AFA97
monochromatic
#9F15F5 #B74FF7 #CF8AFA #E7C5FD #F3E2FE

Accessibility & contrast

On white

2.42
#CF8AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#CF8AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8AFA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8AFA#FFFFFF#000000##000000
##CF8AFA1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A3FE
Deuteranopia (green-blind)
#84A8F7
Tritanopia (blue-blind)
#CA9BB6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cf8afa;
/* rgb */ color: rgb(207, 138, 250);
/* oklch */ color: oklch(74.5% 0.170 311.3);
Tailwind
colors: {
  custom: {
    50: '#dfadfc',
    500: '#cf8afa',
    950: '#000000',
  },
}
SCSS
$custom: #cf8afa;
$custom-light: #dfadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8afa",
  "rgb": {
    "r": 207,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 276.964,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74529,
    "c": 0.1697,
    "h": 311.3
  },
  "luminance": 0.38344
}

Semantic roles & 50–950 ramp

primary
#CF8AFA
secondary
#E2F6D5
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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