Skip to content

#c22df8

a balanced, electric violet · cool · closest name: Medium Orchid

RGB
194, 45, 248
HSL
284°, 94%, 58%
CMYK
22, 82, 0, 3
Luminance
0.2012

At a glance

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

Hex
#c22df8
Hue
284°
violet
Saturation
94%
electric
Lightness
58%
balanced
Brightness
97%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2012
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.02:1
Closest name
Medium Orchid
ΔE2000 6.8
Where it sits
Hue284° of 360°
Saturation94%
Lightness58%
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#c22df8
RGBrgb(194, 45, 248)
HSLhsl(284, 94%, 58%)
CMYKcmyk(22%, 82%, 0%, 3%)
LABlab(52.0 82.1 -70.9)
LCHlch(52.0 108.5 319.2)
OKLCHoklch(0.623 0.281 314.4)
Decimal12725752
Display P3color(display-p3 0.761 0.176 0.973)

Copy-ready code

/* CSS */
color: #c22df8;
background-color: #c22df8;
/* Tailwind (arbitrary) */
class="text-[#c22df8] bg-[#c22df8]"
/* SCSS */
$brand: #c22df8;
/* SwiftUI */
Color(red: 0.761, green: 0.176, blue: 0.973)
/* Android */
Color.parseColor("#c22df8")
/* Flutter */
Color(0xFFC22DF8)
/* Python / OpenCV (BGR) */
(248, 45, 194)

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

Accessibility — WCAG contrast

Aa
#c22df8 on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#c22df8 on black: 5.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0074FD
deuteranopia · #147FF4
tritanopia · #BD6196

Color scale — 50 to 950

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

#FAF2FD
#F5E4FB
#EBC2FA
#DF92FB
#D05CFA
#c22df8
#B008ED
#9307C5
#75059E
#560972
#360547
Base = 500Lightest = 50 · #FAF2FDDarkest = 950 · #360547
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E4FB;
  --brand-200: #EBC2FA;
  --brand-300: #DF92FB;
  --brand-400: #D05CFA;
  --brand-500: #c22df8;
  --brand-600: #B008ED;
  --brand-700: #9307C5;
  --brand-800: #75059E;
  --brand-900: #560972;
  --brand-950: #360547;
  --brand: #c22df8;
  --brand-ink: #000000;
}

Colors that work with #c22df8

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#E1C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#69C903
Second voice, not a rival
Dark variant#5C047B
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 #c22df8

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#63F82D
Analogous left#5D2DF8
Analogous right#F82DC9
Split-complement 1#C9F82D
Split-complement 2#2DF85D
Triadic 1#F8C22D
Triadic 2#2DF8C2
Tetradic#F85D2D

RGB percentages

Red76.1%
Green17.6%
Blue97.3%

CMYK percentages

Cyan21.8%
Magenta81.9%
Yellow0.0%
Key (black)2.7%

Color previews

#c22df8 text on a black background

contrast 5.02:1

Card sample

#c22df8 text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c22df8

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.

#c22df8 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
ButtonsLinksFocus statesCharts
Print note

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

#c22df8, answered

What color is #c22df8?

#c22df8 is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.8). It sits at 284° on the hue wheel with 94% saturation and 58% lightness, which reads as cool.

What is the RGB value of #c22df8?

rgb(194, 45, 248) — 194 red, 45 green and 248 blue out of 255, or 76.1% / 17.6% / 97.3% by channel.

Is #c22df8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2012 and perceived brightness is 55%, so black text on it reaches 5.02:1.

Should I use black or white text on #c22df8?

Black. It scores 5.02:1 against #c22df8, versus 4.18:1 for white — AA at any size.

What is the complementary color of #c22df8?

#63F82D sits directly opposite on the wheel. Softer options are the split-complements #C9F82D and #2DF85D, which give the same contrast with far less vibration.

What colors go well with #c22df8?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #854B9B for secondary text, #69C903 as an accent and #5C047B for hover and pressed states. For a palette, the analogous pair #5D2DF8 and #F82DC9 stays calm, while #63F82D is the loudest partner.

What is #c22df8 in CMYK for printing?

cmyk(22%, 82%, 0%, 3%). 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 #c22df8 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 #F82DE4; nudged cooler, #772BFA.

Work with #c22df8 in the Color Lab