Skip to content

#cb02cd

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

RGB
203, 2, 205
HSL
299°, 98%, 41%
CMYK
1, 99, 0, 20
Luminance
0.1715

At a glance

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

Hex
#cb02cd
Hue
299°
magenta / pink
Saturation
98%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1715
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.74:1
Closest name
Medium Orchid
ΔE2000 7.9
Where it sits
Hue299° of 360°
Saturation98%
Lightness41%
Temperature
Warm ← → Cool50% 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#cb02cd
RGBrgb(203, 2, 205)
HSLhsl(299, 98%, 41%)
CMYKcmyk(1%, 99%, 0%, 20%)
LABlab(48.5 82.8 -52.1)
LCHlch(48.5 97.9 327.8)
OKLCHoklch(0.593 0.272 327.8)
Decimal13304525
Display P3color(display-p3 0.796 0.008 0.804)

Copy-ready code

/* CSS */
color: #cb02cd;
background-color: #cb02cd;
/* Tailwind (arbitrary) */
class="text-[#cb02cd] bg-[#cb02cd]"
/* SCSS */
$brand: #cb02cd;
/* SwiftUI */
Color(red: 0.796, green: 0.008, blue: 0.804)
/* Android */
Color.parseColor("#cb02cd")
/* Flutter */
Color(0xFFCB02CD)
/* Python / OpenCV (BGR) */
(205, 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#ffffff on #cb02cd · 4.74:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.74:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.43:1
AA fail · AA large pass · AAA fail
Reading the other direction: #cb02cd as text scores 4.74:1 on white and 4.43:1 on black.

Accessibility — WCAG contrast

Aa
#cb02cd on white: 4.74:1
AA ✓ pass · AA-large · AAA
Aa
#cb02cd on black: 4.43:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065D1
deuteranopia · #507BC9
tritanopia · #D13B78

Color scale — 50 to 950

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

#FDF1FD
#FCE3FC
#FAC1FB
#FD90FE
#FC58FD
#FB21FD
#F002F2
#cb02cd
#A002A2
#730674
#480449
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #480449
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FCE3FC;
  --brand-200: #FAC1FB;
  --brand-300: #FD90FE;
  --brand-400: #FC58FD;
  --brand-500: #FB21FD;
  --brand-600: #F002F2;
  --brand-700: #cb02cd;
  --brand-800: #A002A2;
  --brand-900: #730674;
  --brand-950: #480449;
  --brand: #cb02cd;
  --brand-ink: #ffffff;
}

Colors that work with #cb02cd

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

Text on it#ffffff
White wins here
Surface#FAF4FA
Tinted page background
Border#ECC0ED
Hairlines and dividers
Muted text#9A4B9B
Captions on the surface
Accent#35CC00
Second voice, not a rival
Dark variant#7D017E
Hover, pressed, headers
Light variant#FFE6FF
Selected rows, tints
Dark surface#241424
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 #cb02cd

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

Works well for
  • Body text and links on white
  • 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#04CD02
Analogous left#6502CD
Analogous right#CD026A
Split-complement 1#6ACD02
Split-complement 2#02CD65
Triadic 1#CDCB02
Triadic 2#02CDCB
Tetradic#CD6502

RGB percentages

Red79.6%
Green0.8%
Blue80.4%

CMYK percentages

Cyan1.0%
Magenta99.0%
Yellow0.0%
Key (black)19.6%

Color previews

#cb02cd text on a black background

contrast 4.43:1

Card sample

#cb02cd text on a white background

contrast 4.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb02cd

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.

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

#cb02cd, answered

What color is #cb02cd?

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

What is the RGB value of #cb02cd?

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

Is #cb02cd a light or a dark color?

It is a dark color. Relative luminance is 0.1715 and perceived brightness is 51%, so white text on it reaches 4.74:1.

Should I use black or white text on #cb02cd?

White. It scores 4.74:1 against #cb02cd, versus 4.43:1 for black — AA at any size.

What is the complementary color of #cb02cd?

#04CD02 sits directly opposite on the wheel. Softer options are the split-complements #6ACD02 and #02CD65, which give the same contrast with far less vibration.

What colors go well with #cb02cd?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #9A4B9B for secondary text, #35CC00 as an accent and #7D017E for hover and pressed states. For a palette, the analogous pair #6502CD and #CD026A stays calm, while #04CD02 is the loudest partner.

What is #cb02cd in CMYK for printing?

cmyk(1%, 99%, 0%, 20%). 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 #cb02cd warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD0285; nudged cooler, #8100CF.

Work with #cb02cd in the Color Lab