Skip to content

#dc8afb

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

RGB
220, 138, 251
HSL
284°, 93%, 76%
CMYK
12, 45, 0, 2
Luminance
0.4036

At a glance

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

Hex
#dc8afb
Hue
284°
violet
Saturation
93%
electric
Lightness
76%
light
Brightness
98%
HSV value
Perceived
71%
weighted brightness
Luminance
0.4036
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.07:1
Closest name
Violet
ΔE2000 4.7
Where it sits
Hue284° of 360°
Saturation93%
Lightness76%
Temperature
Warm ← → Cool59% 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#dc8afb
RGBrgb(220, 138, 251)
HSLhsl(284, 93%, 76%)
CMYKcmyk(12%, 45%, 0%, 2%)
LABlab(69.7 49.7 -44.0)
LCHlch(69.7 66.4 318.5)
OKLCHoklch(0.759 0.176 316.2)
Decimal14453499
Display P3color(display-p3 0.863 0.541 0.984)

Copy-ready code

/* CSS */
color: #dc8afb;
background-color: #dc8afb;
/* Tailwind (arbitrary) */
class="text-[#dc8afb] bg-[#dc8afb]"
/* SCSS */
$brand: #dc8afb;
/* SwiftUI */
Color(red: 0.863, green: 0.541, blue: 0.984)
/* Android */
Color.parseColor("#dc8afb")
/* Flutter */
Color(0xFFDC8AFB)
/* Python / OpenCV (BGR) */
(251, 138, 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 #dc8afb · 9.07:1
Use #000000AAA at every size.
Aa
White text · 2.31:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.07:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #dc8afb as text scores 2.31:1 on white and 9.07:1 on black.

Accessibility — WCAG contrast

Aa
#dc8afb on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#dc8afb on black: 9.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #75A5FF
deuteranopia · #8CADF8
tritanopia · #DB9AB7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #dc8afb 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
#F5E4FB
#EAC2F9
#dc8afb
#CE5CF9
#BE26F8
#AE08ED
#9107C5
#74059E
#550972
#350547
Base = 300Lightest = 50 · #FAF2FDDarkest = 950 · #350547
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E4FB;
  --brand-200: #EAC2F9;
  --brand-300: #dc8afb;
  --brand-400: #CE5CF9;
  --brand-500: #BE26F8;
  --brand-600: #AE08ED;
  --brand-700: #9107C5;
  --brand-800: #74059E;
  --brand-900: #550972;
  --brand-950: #350547;
  --brand: #dc8afb;
  --brand-ink: #000000;
}

Colors that work with #dc8afb

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#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6CC903
Second voice, not a rival
Dark variant#5B047B
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 #dc8afb

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#A9FB8A
Analogous left#A48AFB
Analogous right#FB8AE2
Split-complement 1#E2FB8A
Split-complement 2#8AFBA4
Triadic 1#FBDC8A
Triadic 2#8AFBDC
Tetradic#FBA48A

RGB percentages

Red86.3%
Green54.1%
Blue98.4%

CMYK percentages

Cyan12.4%
Magenta45.0%
Yellow0.0%
Key (black)1.6%

Color previews

#dc8afb text on a black background

contrast 9.07:1

Card sample

#dc8afb text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dc8afb

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.

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

#dc8afb, answered

What color is #dc8afb?

#dc8afb is a light electric violet, closest to Violet (ΔE2000 4.7). It sits at 284° on the hue wheel with 93% saturation and 76% lightness, which reads as cool.

What is the RGB value of #dc8afb?

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

Is #dc8afb a light or a dark color?

It is a mid-tone. Relative luminance is 0.4036 and perceived brightness is 71%, so black text on it reaches 9.07:1.

Should I use black or white text on #dc8afb?

Black. It scores 9.07:1 against #dc8afb, versus 2.31:1 for white — AAA at any size.

What is the complementary color of #dc8afb?

#A9FB8A sits directly opposite on the wheel. Softer options are the split-complements #E2FB8A and #8AFBA4, which give the same contrast with far less vibration.

What colors go well with #dc8afb?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #6CC903 as an accent and #5B047B for hover and pressed states. For a palette, the analogous pair #A48AFB and #FB8AE2 stays calm, while #A9FB8A is the loudest partner.

What is #dc8afb in CMYK for printing?

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

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

Work with #dc8afb in the Color Lab