Skip to content

#c42eee

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

RGB
196, 46, 238
HSL
287°, 85%, 56%
CMYK
18, 81, 0, 7
Luminance
0.1986

At a glance

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

Hex
#c42eee
Hue
287°
violet
Saturation
85%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
54%
weighted brightness
Luminance
0.1986
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.97:1
Closest name
Medium Orchid
ΔE2000 5.9
Where it sits
Hue287° of 360°
Saturation85%
Lightness56%
Temperature
Warm ← → Cool57% 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#c42eee
RGBrgb(196, 46, 238)
HSLhsl(287, 85%, 56%)
CMYKcmyk(18%, 81%, 0%, 7%)
LABlab(51.7 80.3 -65.7)
LCHlch(51.7 103.8 320.7)
OKLCHoklch(0.620 0.273 317.2)
Decimal12857070
Display P3color(display-p3 0.769 0.180 0.933)

Copy-ready code

/* CSS */
color: #c42eee;
background-color: #c42eee;
/* Tailwind (arbitrary) */
class="text-[#c42eee] bg-[#c42eee]"
/* SCSS */
$brand: #c42eee;
/* SwiftUI */
Color(red: 0.769, green: 0.180, blue: 0.933)
/* Android */
Color.parseColor("#c42eee")
/* Flutter */
Color(0xFFC42EEE)
/* Python / OpenCV (BGR) */
(238, 46, 196)

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

Accessibility — WCAG contrast

Aa
#c42eee on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#c42eee on black: 4.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0072F3
deuteranopia · #327FEA
tritanopia · #C25D91

Color scale — 50 to 950

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

#FAF2FC
#F5E5FA
#ECC5F7
#E297F7
#D363F2
#c42eee
#B512E2
#970FBD
#790C97
#580D6D
#370844
Base = 500Lightest = 50 · #FAF2FCDarkest = 950 · #370844
:root {
  --brand-50: #FAF2FC;
  --brand-100: #F5E5FA;
  --brand-200: #ECC5F7;
  --brand-300: #E297F7;
  --brand-400: #D363F2;
  --brand-500: #c42eee;
  --brand-600: #B512E2;
  --brand-700: #970FBD;
  --brand-800: #790C97;
  --brand-900: #580D6D;
  --brand-950: #370844;
  --brand: #c42eee;
  --brand-ink: #000000;
}

Colors that work with #c42eee

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#E3C0ED
Hairlines and dividers
Muted text#894B9B
Captions on the surface
Accent#61C10B
Second voice, not a rival
Dark variant#5E0A76
Hover, pressed, headers
Light variant#F8E7FD
Selected rows, tints
Dark surface#211424
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 #c42eee

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#58EE2E
Analogous left#642EEE
Analogous right#EE2EB8
Split-complement 1#B8EE2E
Split-complement 2#2EEE64
Triadic 1#EEC42E
Triadic 2#2EEEC4
Tetradic#EE642E

RGB percentages

Red76.9%
Green18.0%
Blue93.3%

CMYK percentages

Cyan17.6%
Magenta80.7%
Yellow0.0%
Key (black)6.7%

Color previews

#c42eee text on a black background

contrast 4.97:1

Card sample

#c42eee text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(196, 46, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(196, 46, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c42eee;
background: linear-gradient(135deg, #c42eee, #EE2E98);

Monochromatic scale

Palettes built from #c42eee

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.

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

#c42eee, answered

What color is #c42eee?

#c42eee is a balanced electric violet, closest to Medium Orchid (ΔE2000 5.9). It sits at 287° on the hue wheel with 85% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #c42eee?

rgb(196, 46, 238) — 196 red, 46 green and 238 blue out of 255, or 76.9% / 18% / 93.3% by channel.

Is #c42eee a light or a dark color?

It is a mid-tone. Relative luminance is 0.1986 and perceived brightness is 54%, so black text on it reaches 4.97:1.

Should I use black or white text on #c42eee?

Black. It scores 4.97:1 against #c42eee, versus 4.22:1 for white — AA at any size.

What is the complementary color of #c42eee?

#58EE2E sits directly opposite on the wheel. Softer options are the split-complements #B8EE2E and #2EEE64, which give the same contrast with far less vibration.

What colors go well with #c42eee?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #894B9B for secondary text, #61C10B as an accent and #5E0A76 for hover and pressed states. For a palette, the analogous pair #642EEE and #EE2EB8 stays calm, while #58EE2E is the loudest partner.

What is #c42eee in CMYK for printing?

cmyk(18%, 81%, 0%, 7%). 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 #c42eee warm or cool?

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

Work with #c42eee in the Color Lab