#CF7AFA#CF7AFA

#CF7AFA is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.1% C 0.195 H 313.2°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#CF7AFA
RGBrgb(207, 122, 250)
HSLhsl(280, 93%, 73%)
HSVhsv(280, 51%, 98%)
CMYKcmyk(17.2%, 51.2%, 0%, 2%)
CIE-LABlab(65.03, 54.20, -50.98)
CIE-LCHlch(65.03, 74.41, 316.75°)
OKLaboklab(72.12% 0.1334 -0.1423)
OKLCHoklch(72.12% 0.195 313.2)
XYZxyz(49.9441, 34.0878, 94.3726)
Luminance0.3409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF7AFA #A5FA7A
analogous
#8F7AFA #CF7AFA #FA7AE5
triadic
#CF7AFA #FACF7A #7AFACF
tetradic
#CF7AFA #FA8F7A #A5FA7A #7AE5FA
square
#CF7AFA #FA8F7A #A5FA7A #7AE5FA
split-complementary
#CF7AFA #E5FA7A #7AFA8F
monochromatic
#A309F1 #BA3FF8 #CF7AFA #E4B5FC #F4E2FE

Accessibility & contrast

On white

2.69
#CF7AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#CF7AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF7AFA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF7AFA#FFFFFF#000000##000000
##CF7AFA1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cf7afa;
/* rgb */ color: rgb(207, 122, 250);
/* oklch */ color: oklch(72.1% 0.195 313.2);
Tailwind
colors: {
  custom: {
    50: '#e0a3fc',
    500: '#cf7afa',
    950: '#000000',
  },
}
SCSS
$custom: #cf7afa;
$custom-light: #e0a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf7afa",
  "rgb": {
    "r": 207,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 279.844,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72119,
    "c": 0.19505,
    "h": 313.2
  },
  "luminance": 0.34087
}

Semantic roles & 50–950 ramp

primary
#CF7AFA
secondary
#E0F6D5
accent
#E6004D
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #CF7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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