Skip to content

#c79cfb

a light, electric violet · cool · closest name: Plum

RGB
199, 156, 251
HSL
267°, 92%, 80%
CMYK
21, 38, 0, 2
Luminance
0.4288

At a glance

Every number on this page in one read: what #c79cfb is made of, how bright it looks, and which way it leans.

Hex
#c79cfb
Hue
267°
violet
Saturation
92%
electric
Lightness
80%
light
Brightness
98%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4288
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.58:1
Closest name
Plum
ΔE2000 9.6
Where it sits
Hue267° of 360°
Saturation92%
Lightness80%
Temperature
Warm ← → Cool68% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c79cfb
RGBrgb(199, 156, 251)
HSLhsl(267, 92%, 80%)
CMYKcmyk(21%, 38%, 0%, 2%)
LABlab(71.5 34.1 -41.5)
LCHlch(71.5 53.7 309.4)
OKLCHoklch(0.768 0.139 304.1)
Decimal13081851
Display P3color(display-p3 0.780 0.612 0.984)

Copy-ready code

/* CSS */
color: #c79cfb;
background-color: #c79cfb;
/* Tailwind (arbitrary) */
class="text-[#c79cfb] bg-[#c79cfb]"
/* SCSS */
$brand: #c79cfb;
/* SwiftUI */
Color(red: 0.780, green: 0.612, blue: 0.984)
/* Android */
Color.parseColor("#c79cfb")
/* Flutter */
Color(0xFFC79CFB)
/* Python / OpenCV (BGR) */
(251, 156, 199)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c79cfb · 9.58:1
Use #000000AAA at every size.
Aa
White text · 2.19:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.58:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c79cfb as text scores 2.19:1 on white and 9.58:1 on black.

Accessibility — WCAG contrast

Aa
#c79cfb on white: 2.19:1
AA ✗ fail · AA-large · AAA
Aa
#c79cfb on black: 9.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #86AEFF
deuteranopia · #8FAFF8
tritanopia · #BFABC0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c79cfb is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F2FD
#EFE4FB
#DBC3F9
#c79cfb
#A45DF8
#8527F6
#700AEB
#5D08C4
#4B069D
#380971
#230647
Base = 300Lightest = 50 · #F7F2FDDarkest = 950 · #230647
:root {
  --brand-50: #F7F2FD;
  --brand-100: #EFE4FB;
  --brand-200: #DBC3F9;
  --brand-300: #c79cfb;
  --brand-400: #A45DF8;
  --brand-500: #8527F6;
  --brand-600: #700AEB;
  --brand-700: #5D08C4;
  --brand-800: #4B069D;
  --brand-900: #380971;
  --brand-950: #230647;
  --brand: #c79cfb;
  --brand-ink: #000000;
}

Colors that work with #c79cfb

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F7F4FA
Tinted page background
Border#D4C0ED
Hairlines and dividers
Muted text#6F4B9B
Captions on the surface
Accent#A0C804
Second voice, not a rival
Dark variant#3A057B
Hover, pressed, headers
Light variant#F1E6FE
Selected rows, tints
Dark surface#1B1424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #c79cfb

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#D0FB9C
Analogous left#9CA0FB
Analogous right#F79CFB
Split-complement 1#FBF79C
Split-complement 2#A0FB9C
Triadic 1#FBC79C
Triadic 2#9CFBC7
Tetradic#FB9CA0

RGB percentages

Red78.0%
Green61.2%
Blue98.4%

CMYK percentages

Cyan20.7%
Magenta37.8%
Yellow0.0%
Key (black)1.6%

Color previews

#c79cfb text on a black background

contrast 9.58:1

Card sample

#c79cfb text on a white background

contrast 2.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #c79cfb;
Background color
Panel with #c79cfb background
background-color: #c79cfb;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #c79cfb;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(199, 156, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 156, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c79cfb;
background: linear-gradient(135deg, #c79cfb, #FB9CF0);

Monochromatic scale

Palettes built from #c79cfb

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c79cfb in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#c79cfb, answered

What color is #c79cfb?

#c79cfb is a light electric violet, closest to Plum (ΔE2000 9.6). It sits at 267° on the hue wheel with 92% saturation and 80% lightness, which reads as cool.

What is the RGB value of #c79cfb?

rgb(199, 156, 251) — 199 red, 156 green and 251 blue out of 255, or 78% / 61.2% / 98.4% by channel.

Is #c79cfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.4288 and perceived brightness is 72%, so black text on it reaches 9.58:1.

Should I use black or white text on #c79cfb?

Black. It scores 9.58:1 against #c79cfb, versus 2.19:1 for white — AAA at any size.

What is the complementary color of #c79cfb?

#D0FB9C sits directly opposite on the wheel. Softer options are the split-complements #FBF79C and #A0FB9C, which give the same contrast with far less vibration.

What colors go well with #c79cfb?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6F4B9B for secondary text, #A0C804 as an accent and #3A057B for hover and pressed states. For a palette, the analogous pair #9CA0FB and #F79CFB stays calm, while #D0FB9C is the loudest partner.

What is #c79cfb in CMYK for printing?

cmyk(21%, 38%, 0%, 2%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #c79cfb warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EA9CFB; nudged cooler, #A39BFC.

Work with #c79cfb in the Color Lab