Skip to content

#cb02c2

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

RGB
203, 2, 194
HSL
303°, 98%, 40%
CMYK
0, 99, 4, 20
Luminance
0.1663

At a glance

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

Hex
#cb02c2
Hue
303°
magenta / pink
Saturation
98%
electric
Lightness
40%
dark
Brightness
80%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1663
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.85:1
Closest name
Medium Orchid
ΔE2000 8.7
Where it sits
Hue303° of 360°
Saturation98%
Lightness40%
Temperature
Warm ← → Cool48% 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#cb02c2
RGBrgb(203, 2, 194)
HSLhsl(303, 98%, 40%)
CMYKcmyk(0%, 99%, 4%, 20%)
LABlab(47.8 81.3 -46.8)
LCHlch(47.8 93.8 330.1)
OKLCHoklch(0.586 0.265 330.8)
Decimal13304514
Display P3color(display-p3 0.796 0.008 0.761)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb02c2 on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#cb02c2 on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062C6
deuteranopia · #587ABE
tritanopia · #D33372

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cb02c2 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
#FCE3FB
#FBC1F8
#FE90F9
#FD58F6
#FD21F3
#F202E8
#cb02c2
#A2029A
#74066F
#490446
Base = 700Lightest = 50 · #FDF1FDDarkest = 950 · #490446
:root {
  --brand-50: #FDF1FD;
  --brand-100: #FCE3FB;
  --brand-200: #FBC1F8;
  --brand-300: #FE90F9;
  --brand-400: #FD58F6;
  --brand-500: #FD21F3;
  --brand-600: #F202E8;
  --brand-700: #cb02c2;
  --brand-800: #A2029A;
  --brand-900: #74066F;
  --brand-950: #490446;
  --brand: #cb02c2;
  --brand-ink: #ffffff;
}

Colors that work with #cb02c2

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#EDC0EB
Hairlines and dividers
Muted text#9B4B97
Captions on the surface
Accent#2ACC00
Second voice, not a rival
Dark variant#7E0179
Hover, pressed, headers
Light variant#FFE6FE
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 #cb02c2

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#02CB0B
Analogous left#7002CB
Analogous right#CB025D
Split-complement 1#5DCB02
Split-complement 2#02CB70
Triadic 1#C2CB02
Triadic 2#02C2CB
Tetradic#CB7002

RGB percentages

Red79.6%
Green0.8%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta99.0%
Yellow4.4%
Key (black)20.4%

Color previews

#cb02c2 text on a black background

contrast 4.33:1

Card sample

#cb02c2 text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb02c2

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.

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

#cb02c2, answered

What color is #cb02c2?

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

What is the RGB value of #cb02c2?

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

Is #cb02c2 a light or a dark color?

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

Should I use black or white text on #cb02c2?

White. It scores 4.85:1 against #cb02c2, versus 4.33:1 for black — AA at any size.

What is the complementary color of #cb02c2?

#02CB0B sits directly opposite on the wheel. Softer options are the split-complements #5DCB02 and #02CB70, which give the same contrast with far less vibration.

What colors go well with #cb02c2?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B97 for secondary text, #2ACC00 as an accent and #7E0179 for hover and pressed states. For a palette, the analogous pair #7002CB and #CB025D stays calm, while #02CB0B is the loudest partner.

What is #cb02c2 in CMYK for printing?

cmyk(0%, 99%, 4%, 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 #cb02c2 warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB0278; nudged cooler, #8B00CD.

Work with #cb02c2 in the Color Lab