#CF7AF6#CF7AF6

#CF7AF6 is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.9% C 0.191 H 314.2°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#CF7AF6
RGBrgb(207, 122, 246)
HSLhsl(281, 87%, 72%)
HSVhsv(281, 50%, 96%)
CMYKcmyk(15.9%, 50.4%, 0%, 3.5%)
CIE-LABlab(64.84, 53.37, -49.09)
CIE-LCHlch(64.84, 72.52, 317.39°)
OKLaboklab(71.91% 0.133 -0.1368)
OKLCHoklch(71.91% 0.191 314.2)
XYZxyz(49.3235, 33.8396, 91.1043)
Luminance0.3384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AF6 #A1F67A
analogous
#917AF6 #CF7AF6 #F67ADF
triadic
#CF7AF6 #F6CF7A #7AF6CF
tetradic
#CF7AF6 #F6917A #A1F67A #7ADFF6
square
#CF7AF6 #F6917A #A1F67A #7ADFF6
split-complementary
#CF7AF6 #DFF67A #7AF691
monochromatic
#A310E6 #BA41F2 #CF7AF6 #E4B3FA #F5E2FD

Accessibility & contrast

On white

2.70
#CF7AF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#CF7AF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AF6
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AF6#FFFFFF#000000##000000
##CF7AF61.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E98FA
Deuteranopia (green-blind)
#78A0F3
Tritanopia (blue-blind)
#CC8DAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cf7af6;
/* rgb */ color: rgb(207, 122, 246);
/* oklch */ color: oklch(71.9% 0.191 314.2);
Tailwind
colors: {
  custom: {
    50: '#e0a3f9',
    500: '#cf7af6',
    950: '#000000',
  },
}
SCSS
$custom: #cf7af6;
$custom-light: #e0a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7af6",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 281.129,
    "s": 87.324,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71909,
    "c": 0.19081,
    "h": 314.2
  },
  "luminance": 0.33838
}

Semantic roles & 50–950 ramp

primary
#CF7AF6
secondary
#E0F5D6
accent
#E40249
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F17
muted
#847F85

Preview Lab

Preview with #CF7AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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