Skip to content

#d27dfb

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

RGB
210, 125, 251
HSL
281°, 94%, 74%
CMYK
16, 50, 0, 2
Luminance
0.3533

At a glance

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

Hex
#d27dfb
Hue
281°
violet
Saturation
94%
electric
Lightness
74%
light
Brightness
98%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3533
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.07:1
Closest name
Violet
ΔE2000 6.6
Where it sits
Hue281° of 360°
Saturation94%
Lightness74%
Temperature
Warm ← → Cool61% 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#d27dfb
RGBrgb(210, 125, 251)
HSLhsl(281, 94%, 74%)
CMYKcmyk(16%, 50%, 0%, 2%)
LABlab(66.0 53.7 -50.0)
LCHlch(66.0 73.3 317.1)
OKLCHoklch(0.729 0.193 313.7)
Decimal13794811
Display P3color(display-p3 0.824 0.490 0.984)

Copy-ready code

/* CSS */
color: #d27dfb;
background-color: #d27dfb;
/* Tailwind (arbitrary) */
class="text-[#d27dfb] bg-[#d27dfb]"
/* SCSS */
$brand: #d27dfb;
/* SwiftUI */
Color(red: 0.824, green: 0.490, blue: 0.984)
/* Android */
Color.parseColor("#d27dfb")
/* Flutter */
Color(0xFFD27DFB)
/* Python / OpenCV (BGR) */
(251, 125, 210)

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

Accessibility — WCAG contrast

Aa
#d27dfb on white: 2.60:1
AA ✗ fail · AA-large · AAA
Aa
#d27dfb on black: 8.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #609CFF
deuteranopia · #7AA3F8
tritanopia · #CF91B1

Color scale — 50 to 950

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

#F9F2FD
#F4E4FB
#E8C2FA
#d27dfb
#C75CFA
#B425F8
#A307ED
#8806C6
#6C059E
#500872
#320547
Base = 300Lightest = 50 · #F9F2FDDarkest = 950 · #320547
:root {
  --brand-50: #F9F2FD;
  --brand-100: #F4E4FB;
  --brand-200: #E8C2FA;
  --brand-300: #d27dfb;
  --brand-400: #C75CFA;
  --brand-500: #B425F8;
  --brand-600: #A307ED;
  --brand-700: #8806C6;
  --brand-800: #6C059E;
  --brand-900: #500872;
  --brand-950: #320547;
  --brand: #d27dfb;
  --brand-ink: #000000;
}

Colors that work with #d27dfb

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#F8F4FA
Tinted page background
Border#DEC0ED
Hairlines and dividers
Muted text#814B9B
Captions on the surface
Accent#75CA02
Second voice, not a rival
Dark variant#55047C
Hover, pressed, headers
Light variant#F6E6FE
Selected rows, tints
Dark surface#1F1424
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 #d27dfb

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#A6FB7D
Analogous left#937DFB
Analogous right#FB7DE5
Split-complement 1#E5FB7D
Split-complement 2#7DFB93
Triadic 1#FBD27D
Triadic 2#7DFBD2
Tetradic#FB937D

RGB percentages

Red82.4%
Green49.0%
Blue98.4%

CMYK percentages

Cyan16.3%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#d27dfb text on a black background

contrast 8.07:1

Card sample

#d27dfb text on a white background

contrast 2.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d27dfb

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.

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

#d27dfb, answered

What color is #d27dfb?

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

What is the RGB value of #d27dfb?

rgb(210, 125, 251) — 210 red, 125 green and 251 blue out of 255, or 82.4% / 49% / 98.4% by channel.

Is #d27dfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3533 and perceived brightness is 67%, so black text on it reaches 8.07:1.

Should I use black or white text on #d27dfb?

Black. It scores 8.07:1 against #d27dfb, versus 2.60:1 for white — AAA at any size.

What is the complementary color of #d27dfb?

#A6FB7D sits directly opposite on the wheel. Softer options are the split-complements #E5FB7D and #7DFB93, which give the same contrast with far less vibration.

What colors go well with #d27dfb?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #814B9B for secondary text, #75CA02 as an accent and #55047C for hover and pressed states. For a palette, the analogous pair #937DFB and #FB7DE5 stays calm, while #A6FB7D is the loudest partner.

What is #d27dfb in CMYK for printing?

cmyk(16%, 50%, 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 #d27dfb warm or cool?

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

Work with #d27dfb in the Color Lab