Skip to content

#c40af5

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

RGB
196, 10, 245
HSL
288°, 92%, 50%
CMYK
20, 96, 0, 4
Luminance
0.1855

At a glance

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

Hex
#c40af5
Hue
288°
violet
Saturation
92%
electric
Lightness
50%
balanced
Brightness
96%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1855
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.71:1
Closest name
Medium Orchid
ΔE2000 8
Where it sits
Hue288° of 360°
Saturation92%
Lightness50%
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#c40af5
RGBrgb(196, 10, 245)
HSLhsl(288, 92%, 50%)
CMYKcmyk(20%, 96%, 0%, 4%)
LABlab(50.1 87.5 -72.2)
LCHlch(50.1 113.4 320.5)
OKLCHoklch(0.611 0.295 316.3)
Decimal12847861
Display P3color(display-p3 0.769 0.039 0.961)

Copy-ready code

/* CSS */
color: #c40af5;
background-color: #c40af5;
/* Tailwind (arbitrary) */
class="text-[#c40af5] bg-[#c40af5]"
/* SCSS */
$brand: #c40af5;
/* SwiftUI */
Color(red: 0.769, green: 0.039, blue: 0.961)
/* Android */
Color.parseColor("#c40af5")
/* Flutter */
Color(0xFFC40AF5)
/* Python / OpenCV (BGR) */
(245, 10, 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 #c40af5 · 4.71:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.46:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.71:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #c40af5 as text scores 4.46:1 on white and 4.71:1 on black.

Accessibility — WCAG contrast

Aa
#c40af5 on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#c40af5 on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006EFA
deuteranopia · #007CF1
tritanopia · #C05791

Color scale — 50 to 950

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

#FBF2FD
#F6E4FB
#EEC3F9
#E593FB
#D85DF8
#CB27F6
#c40af5
#9D08C4
#7D069D
#5B0971
#390647
Base = 600Lightest = 50 · #FBF2FDDarkest = 950 · #390647
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F6E4FB;
  --brand-200: #EEC3F9;
  --brand-300: #E593FB;
  --brand-400: #D85DF8;
  --brand-500: #CB27F6;
  --brand-600: #c40af5;
  --brand-700: #9D08C4;
  --brand-800: #7D069D;
  --brand-900: #5B0971;
  --brand-950: #390647;
  --brand: #c40af5;
  --brand-ink: #000000;
}

Colors that work with #c40af5

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#8A4B9B
Captions on the surface
Accent#5EC804
Second voice, not a rival
Dark variant#62057B
Hover, pressed, headers
Light variant#F9E6FE
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 #c40af5

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#3BF50A
Analogous left#4F0AF5
Analogous right#F50AB0
Split-complement 1#B0F50A
Split-complement 2#0AF54F
Triadic 1#F5C40A
Triadic 2#0AF5C4
Tetradic#F54F0A

RGB percentages

Red76.9%
Green3.9%
Blue96.1%

CMYK percentages

Cyan20.0%
Magenta95.9%
Yellow0.0%
Key (black)3.9%

Color previews

#c40af5 text on a black background

contrast 4.71:1

Card sample

#c40af5 text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c40af5

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.

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

#c40af5, answered

What color is #c40af5?

#c40af5 is a balanced electric violet, closest to Medium Orchid (ΔE2000 8). It sits at 288° on the hue wheel with 92% saturation and 50% lightness, which reads as neutral.

What is the RGB value of #c40af5?

rgb(196, 10, 245) — 196 red, 10 green and 245 blue out of 255, or 76.9% / 3.9% / 96.1% by channel.

Is #c40af5 a light or a dark color?

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

Should I use black or white text on #c40af5?

Black. It scores 4.71:1 against #c40af5, versus 4.46:1 for white — AA at any size.

What is the complementary color of #c40af5?

#3BF50A sits directly opposite on the wheel. Softer options are the split-complements #B0F50A and #0AF54F, which give the same contrast with far less vibration.

What colors go well with #c40af5?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5EC804 as an accent and #62057B for hover and pressed states. For a palette, the analogous pair #4F0AF5 and #F50AB0 stays calm, while #3BF50A is the loudest partner.

What is #c40af5 in CMYK for printing?

cmyk(20%, 96%, 0%, 4%). 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 #c40af5 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 #F50AD0; nudged cooler, #6D07F8.

Work with #c40af5 in the Color Lab