#CF7AFB#CF7AFB

#CF7AFB is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.2% C 0.196 H 312.9°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CF7AFB
RGBrgb(207, 122, 251)
HSLhsl(280, 94%, 73%)
HSVhsv(280, 51%, 98%)
CMYKcmyk(17.5%, 51.4%, 0%, 1.6%)
CIE-LABlab(65.08, 54.41, -51.45)
CIE-LCHlch(65.08, 74.88, 316.60°)
OKLaboklab(72.17% 0.1335 -0.1437)
OKLCHoklch(72.17% 0.196 312.9)
XYZxyz(50.1013, 34.1507, 95.2006)
Luminance0.3415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AFB #A6FB7A
analogous
#8E7AFB #CF7AFB #FB7AE6
triadic
#CF7AFB #FBCF7A #7AFBCF
tetradic
#CF7AFB #FB8E7A #A6FB7A #7AE6FB
square
#CF7AFB #FB8E7A #A6FB7A #7AE6FB
split-complementary
#CF7AFB #E6FB7A #7AFB8E
monochromatic
#A307F3 #BA3FF9 #CF7AFB #E4B5FD #F4E1FE

Accessibility & contrast

On white

2.68
#CF7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#CF7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AFB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AFB#FFFFFF#000000##000000
##CF7AFB1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FF
Deuteranopia (green-blind)
#75A0F8
Tritanopia (blue-blind)
#CB8FAF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cf7afb;
/* rgb */ color: rgb(207, 122, 251);
/* oklch */ color: oklch(72.2% 0.196 312.9);
Tailwind
colors: {
  custom: {
    50: '#e0a3fd',
    500: '#cf7afb',
    950: '#000000',
  },
}
SCSS
$custom: #cf7afb;
$custom-light: #e0a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7afb",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 279.535,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72172,
    "c": 0.19611,
    "h": 312.9
  },
  "luminance": 0.34149
}

Semantic roles & 50–950 ramp

primary
#CF7AFB
secondary
#E0F6D5
accent
#E6004E
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #CF7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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