#CF9AFA#CF9AFA

#CF9AFA is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.1% C 0.143 H 308.7°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#CF9AFA
RGBrgb(207, 154, 250)
HSLhsl(273, 91%, 79%)
HSVhsv(273, 38%, 98%)
CMYKcmyk(17.2%, 38.4%, 0%, 2%)
CIE-LABlab(71.74, 37.28, -40.43)
CIE-LCHlch(71.74, 55.00, 312.68°)
OKLaboklab(77.14% 0.0898 -0.1119)
OKLCHoklch(77.14% 0.143 308.7)
XYZxyz(54.5398, 43.2793, 95.9045)
Luminance0.4328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9AFA #C5FA9A
analogous
#9F9AFA #CF9AFA #FA9AF5
triadic
#CF9AFA #FACF9A #9AFACF
tetradic
#CF9AFA #FA9F9A #C5FA9A #9AF5FA
square
#CF9AFA #FA9F9A #C5FA9A #9AF5FA
split-complementary
#CF9AFA #F5FA9A #9AFA9F
monochromatic
#9825F4 #B360F7 #CF9AFA #EBD4FD #F1E2FE

Accessibility & contrast

On white

2.17
#CF9AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#CF9AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9AFA
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9AFA#FFFFFF#000000##000000
##CF9AFA1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86ADFE
Deuteranopia (green-blind)
#92B1F7
Tritanopia (blue-blind)
#CAA8BE
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cf9afa;
/* rgb */ color: rgb(207, 154, 250);
/* oklch */ color: oklch(77.1% 0.143 308.7);
Tailwind
colors: {
  custom: {
    50: '#dfb8fc',
    500: '#cf9afa',
    950: '#000000',
  },
}
SCSS
$custom: #cf9afa;
$custom-light: #dfb8fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9afa",
  "rgb": {
    "r": 207,
    "g": 154,
    "b": 250
  },
  "hsl": {
    "h": 273.125,
    "s": 90.566,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77138,
    "c": 0.14349,
    "h": 308.7
  },
  "luminance": 0.43279
}

Semantic roles & 50–950 ramp

primary
#CF9AFA
secondary
#E4F6D5
accent
#E60067
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF9AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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