#CF7BF2#CF7BF2

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

Color values

HEX#CF7BF2
RGBrgb(207, 123, 242)
HSLhsl(282, 82%, 72%)
HSVhsv(282, 49%, 95%)
CMYKcmyk(14.5%, 49.2%, 0%, 5.1%)
CIE-LABlab(64.84, 52.04, -46.88)
CIE-LCHlch(64.84, 70.04, 317.98°)
OKLaboklab(71.85% 0.1313 -0.1304)
OKLCHoklch(71.85% 0.185 315.2)
XYZxyz(48.8396, 33.8435, 87.9469)
Luminance0.3384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7BF2 #9EF27B
analogous
#947BF2 #CF7BF2 #F27BDA
triadic
#CF7BF2 #F2CF7B #7BF2CF
tetradic
#CF7BF2 #F2947B #9EF27B #7BDAF2
square
#CF7BF2 #F2947B #9EF27B #7BDAF2
split-complementary
#CF7BF2 #DAF27B #7BF294
monochromatic
#A216DD #BB43ED #CF7BF2 #E3B3F7 #F5E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF7BF2#FFFFFF#000000##000000
##CF7BF21.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)
#6298F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#CD8DAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cf7bf2;
/* rgb */ color: rgb(207, 123, 242);
/* oklch */ color: oklch(71.8% 0.185 315.2);
Tailwind
colors: {
  custom: {
    50: '#e0a4f7',
    500: '#cf7bf2',
    950: '#000000',
  },
}
SCSS
$custom: #cf7bf2;
$custom-light: #e0a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7bf2",
  "rgb": {
    "r": 207,
    "g": 123,
    "b": 242
  },
  "hsl": {
    "h": 282.353,
    "s": 82.069,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71849,
    "c": 0.18502,
    "h": 315.2
  },
  "luminance": 0.33842
}

Semantic roles & 50–950 ramp

primary
#CF7BF2
secondary
#DEF4D5
accent
#DE0746
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F17
muted
#847F85

Preview Lab

Preview with #CF7BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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