Skip to content

#cb02df

a dark, electric magenta / pink · neutral · closest name: Medium Orchid

RGB
203, 2, 223
HSL
295°, 98%, 44%
CMYK
9, 99, 0, 13
Luminance
0.1807

At a glance

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

Hex
#cb02df
Hue
295°
magenta / pink
Saturation
98%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1807
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.61:1
Closest name
Medium Orchid
ΔE2000 7.3
Where it sits
Hue295° of 360°
Saturation98%
Lightness44%
Temperature
Warm ← → Cool53% cool

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

Every format

HEX#cb02df
RGBrgb(203, 2, 223)
HSLhsl(295, 98%, 44%)
CMYKcmyk(9%, 99%, 0%, 13%)
LABlab(49.6 85.6 -60.6)
LCHlch(49.6 104.8 324.7)
OKLCHoklch(0.604 0.284 323.3)
Decimal13304543
Display P3color(display-p3 0.796 0.008 0.875)

Copy-ready code

/* CSS */
color: #cb02df;
background-color: #cb02df;
/* Tailwind (arbitrary) */
class="text-[#cb02df] bg-[#cb02df]"
/* SCSS */
$brand: #cb02df;
/* SwiftUI */
Color(red: 0.796, green: 0.008, blue: 0.875)
/* Android */
Color.parseColor("#cb02df")
/* Flutter */
Color(0xFFCB02DF)
/* Python / OpenCV (BGR) */
(223, 2, 203)

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

Accessibility — WCAG contrast

Aa
#cb02df on white: 4.55:1
AA ✓ pass · AA-large · AAA
Aa
#cb02df on black: 4.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0069E4
deuteranopia · #407CDB
tritanopia · #CE4783

Color scale — 50 to 950

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

#FCF1FD
#FAE3FC
#F6C1FB
#F490FE
#EF58FD
#E921FD
#cb02df
#B802CA
#9301A2
#6B0674
#430449
Base = 600Lightest = 50 · #FCF1FDDarkest = 950 · #430449
:root {
  --brand-50: #FCF1FD;
  --brand-100: #FAE3FC;
  --brand-200: #F6C1FB;
  --brand-300: #F490FE;
  --brand-400: #EF58FD;
  --brand-500: #E921FD;
  --brand-600: #cb02df;
  --brand-700: #B802CA;
  --brand-800: #9301A2;
  --brand-900: #6B0674;
  --brand-950: #430449;
  --brand: #cb02df;
  --brand-ink: #000000;
}

Colors that work with #cb02df

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#FAF4FA
Tinted page background
Border#E9C0ED
Hairlines and dividers
Muted text#944B9B
Captions on the surface
Accent#45CC00
Second voice, not a rival
Dark variant#73017E
Hover, pressed, headers
Light variant#FDE6FF
Selected rows, tints
Dark surface#231424
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 #cb02df

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#16DF02
Analogous left#5D02DF
Analogous right#DF0284
Split-complement 1#84DF02
Split-complement 2#02DF5D
Triadic 1#DFCB02
Triadic 2#02DFCB
Tetradic#DF5D02

RGB percentages

Red79.6%
Green0.8%
Blue87.5%

CMYK percentages

Cyan9.0%
Magenta99.1%
Yellow0.0%
Key (black)12.5%

Color previews

#cb02df text on a black background

contrast 4.61:1

Card sample

#cb02df text on a white background

contrast 4.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 2, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 2, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cb02df;
background: linear-gradient(135deg, #cb02df, #DF0260);

Monochromatic scale

Palettes built from #cb02df

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.

#cb02df in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#cb02df, answered

What color is #cb02df?

#cb02df is a dark electric magenta / pink, closest to Medium Orchid (ΔE2000 7.3). It sits at 295° on the hue wheel with 98% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #cb02df?

rgb(203, 2, 223) — 203 red, 2 green and 223 blue out of 255, or 79.6% / 0.8% / 87.5% by channel.

Is #cb02df a light or a dark color?

It is a mid-tone. Relative luminance is 0.1807 and perceived brightness is 53%, so black text on it reaches 4.61:1.

Should I use black or white text on #cb02df?

Black. It scores 4.61:1 against #cb02df, versus 4.55:1 for white — AA at any size.

What is the complementary color of #cb02df?

#16DF02 sits directly opposite on the wheel. Softer options are the split-complements #84DF02 and #02DF5D, which give the same contrast with far less vibration.

What colors go well with #cb02df?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #944B9B for secondary text, #45CC00 as an accent and #73017E for hover and pressed states. For a palette, the analogous pair #5D02DF and #DF0284 stays calm, while #16DF02 is the loudest partner.

What is #cb02df in CMYK for printing?

cmyk(9%, 99%, 0%, 13%). 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 #cb02df warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF02A2; nudged cooler, #7A00E1.

Work with #cb02df in the Color Lab