Skip to content

#dc7cfb

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

RGB
220, 124, 251
HSL
285°, 94%, 74%
CMYK
12, 51, 0, 2
Luminance
0.3660

At a glance

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

Hex
#dc7cfb
Hue
285°
violet
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3660
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.32:1
Closest name
Violet
ΔE2000 5
Where it sits
Hue285° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool58% 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#dc7cfb
RGBrgb(220, 124, 251)
HSLhsl(285, 94%, 74%)
CMYKcmyk(12%, 51%, 0%, 2%)
LABlab(67.0 56.8 -48.4)
LCHlch(67.0 74.6 319.6)
OKLCHoklch(0.739 0.199 317.4)
Decimal14449915
Display P3color(display-p3 0.863 0.486 0.984)

Copy-ready code

/* CSS */
color: #dc7cfb;
background-color: #dc7cfb;
/* Tailwind (arbitrary) */
class="text-[#dc7cfb] bg-[#dc7cfb]"
/* SCSS */
$brand: #dc7cfb;
/* SwiftUI */
Color(red: 0.863, green: 0.486, blue: 0.984)
/* Android */
Color.parseColor("#dc7cfb")
/* Flutter */
Color(0xFFDC7CFB)
/* Python / OpenCV (BGR) */
(251, 124, 220)

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 #dc7cfb · 8.32:1
Use #000000AAA at every size.
Aa
White text · 2.52:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.32:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #dc7cfb as text scores 2.52:1 on white and 8.32:1 on black.

Accessibility — WCAG contrast

Aa
#dc7cfb on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#dc7cfb on black: 8.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #639DFF
deuteranopia · #80A6F8
tritanopia · #DB8FB0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dc7cfb 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.

#FAF2FD
#F6E4FB
#ECC2FA
#dc7cfb
#D35CFA
#C525F8
#B607EE
#9706C6
#79059E
#580872
#370547
Base = 300Lightest = 50 · #FAF2FDDarkest = 950 · #370547
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F6E4FB;
  --brand-200: #ECC2FA;
  --brand-300: #dc7cfb;
  --brand-400: #D35CFA;
  --brand-500: #C525F8;
  --brand-600: #B607EE;
  --brand-700: #9706C6;
  --brand-800: #79059E;
  --brand-900: #580872;
  --brand-950: #370547;
  --brand: #dc7cfb;
  --brand-ink: #000000;
}

Colors that work with #dc7cfb

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#F9F4FA
Tinted page background
Border#E2C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#65CA02
Second voice, not a rival
Dark variant#5F047C
Hover, pressed, headers
Light variant#F8E6FE
Selected rows, tints
Dark surface#201424
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 #dc7cfb

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#9BFB7C
Analogous left#9C7CFB
Analogous right#FB7CDA
Split-complement 1#DAFB7C
Split-complement 2#7CFB9C
Triadic 1#FBDC7C
Triadic 2#7CFBDC
Tetradic#FB9C7C

RGB percentages

Red86.3%
Green48.6%
Blue98.4%

CMYK percentages

Cyan12.4%
Magenta50.6%
Yellow0.0%
Key (black)1.6%

Color previews

#dc7cfb text on a black background

contrast 8.32:1

Card sample

#dc7cfb text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc7cfb

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.

#dc7cfb 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.

#dc7cfb, answered

What color is #dc7cfb?

#dc7cfb is a light electric violet, closest to Violet (ΔE2000 5). It sits at 285° on the hue wheel with 94% saturation and 74% lightness, which reads as cool.

What is the RGB value of #dc7cfb?

rgb(220, 124, 251) — 220 red, 124 green and 251 blue out of 255, or 86.3% / 48.6% / 98.4% by channel.

Is #dc7cfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3660 and perceived brightness is 69%, so black text on it reaches 8.32:1.

Should I use black or white text on #dc7cfb?

Black. It scores 8.32:1 against #dc7cfb, versus 2.52:1 for white — AAA at any size.

What is the complementary color of #dc7cfb?

#9BFB7C sits directly opposite on the wheel. Softer options are the split-complements #DAFB7C and #7CFB9C, which give the same contrast with far less vibration.

What colors go well with #dc7cfb?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #874B9B for secondary text, #65CA02 as an accent and #5F047C for hover and pressed states. For a palette, the analogous pair #9C7CFB and #FB7CDA stays calm, while #9BFB7C is the loudest partner.

What is #dc7cfb in CMYK for printing?

cmyk(12%, 51%, 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 #dc7cfb warm or cool?

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

Work with #dc7cfb in the Color Lab