#CF9AFB#CF9AFB

#CF9AFB is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.2% C 0.145 H 308.5°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#CF9AFB
RGBrgb(207, 154, 251)
HSLhsl(273, 92%, 79%)
HSVhsv(273, 39%, 98%)
CMYKcmyk(17.5%, 38.6%, 0%, 1.6%)
CIE-LABlab(71.79, 37.50, -40.91)
CIE-LCHlch(71.79, 55.50, 312.51°)
OKLaboklab(77.18% 0.09 -0.1133)
OKLCHoklch(77.18% 0.145 308.5)
XYZxyz(54.6970, 43.3422, 96.7325)
Luminance0.4334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9AFB #C6FB9A
analogous
#9F9AFB #CF9AFB #FB9AF6
triadic
#CF9AFB #FBCF9A #9AFBCF
tetradic
#CF9AFB #FB9F9A #C6FB9A #9AF6FB
square
#CF9AFB #FB9F9A #C6FB9A #9AF6FB
split-complementary
#CF9AFB #F6FB9A #9AFB9F
monochromatic
#9724F6 #B35FF9 #CF9AFB #EBD5FD #F1E2FE

Accessibility & contrast

On white

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

On black

9.67
#CF9AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9AFB
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9AFB#FFFFFF#000000##000000
##CF9AFB1.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AEFF
Deuteranopia (green-blind)
#92B1F8
Tritanopia (blue-blind)
#C9A9BF
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cf9afb;
/* rgb */ color: rgb(207, 154, 251);
/* oklch */ color: oklch(77.2% 0.145 308.5);
Tailwind
colors: {
  custom: {
    50: '#dfb8fd',
    500: '#cf9afb',
    950: '#000000',
  },
}
SCSS
$custom: #cf9afb;
$custom-light: #dfb8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9afb",
  "rgb": {
    "r": 207,
    "g": 154,
    "b": 251
  },
  "hsl": {
    "h": 272.784,
    "s": 92.381,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77184,
    "c": 0.14468,
    "h": 308.5
  },
  "luminance": 0.43342
}

Semantic roles & 50–950 ramp

primary
#CF9AFB
secondary
#E4F6D5
accent
#E60068
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF9AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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