#CF8BF8#CF8BF8

#CF8BF8 is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.6% C 0.166 H 311.7°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#CF8BF8
RGBrgb(207, 139, 248)
HSLhsl(277, 89%, 76%)
HSVhsv(277, 44%, 97%)
CMYKcmyk(16.5%, 44%, 0%, 2.7%)
CIE-LABlab(68.39, 44.92, -44.58)
CIE-LCHlch(68.39, 63.29, 315.22°)
OKLaboklab(74.59% 0.1103 -0.1238)
OKLCHoklch(74.59% 0.166 311.7)
XYZxyz(51.9051, 38.5089, 93.4874)
Luminance0.3851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8BF8 #B4F88B
analogous
#988BF8 #CF8BF8 #F88BEB
triadic
#CF8BF8 #F8CF8B #8BF8CF
tetradic
#CF8BF8 #F8988B #B4F88B #8BEBF8
square
#CF8BF8 #F8988B #B4F88B #8BEBF8
split-complementary
#CF8BF8 #EBF88B #8BF898
monochromatic
#9F18F1 #B751F5 #CF8BF8 #E7C5FB #F3E2FD

Accessibility & contrast

On white

2.41
#CF8BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#CF8BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8BF8
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8BF8#FFFFFF#000000##000000
##CF8BF81.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A3FC
Deuteranopia (green-blind)
#86A8F5
Tritanopia (blue-blind)
#CB9BB6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cf8bf8;
/* rgb */ color: rgb(207, 139, 248);
/* oklch */ color: oklch(74.6% 0.166 311.7);
Tailwind
colors: {
  custom: {
    50: '#dfaefb',
    500: '#cf8bf8',
    950: '#000000',
  },
}
SCSS
$custom: #cf8bf8;
$custom-light: #dfaefb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8bf8",
  "rgb": {
    "r": 207,
    "g": 139,
    "b": 248
  },
  "hsl": {
    "h": 277.431,
    "s": 88.618,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74589,
    "c": 0.16581,
    "h": 311.7
  },
  "luminance": 0.38508
}

Semantic roles & 50–950 ramp

primary
#CF8BF8
secondary
#E2F5D6
accent
#E50056
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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