#40cec2
a balanced, vivid cyan · cool · closest name: Medium Turquoise
At a glance
Every number on this page in one read: what #40cec2 is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #40cec2 |
| RGB | rgb(64, 206, 194) |
| HSL | hsl(175, 59%, 53%) |
| CMYK | cmyk(69%, 0%, 6%, 19%) |
| LAB | lab(75.5 -39.9 -5.0) |
| LCH | lch(75.5 40.2 187.1) |
| OKLCH | oklch(0.774 0.120 186.8) |
| Decimal | 4247234 |
| Display P3 | color(display-p3 0.251 0.808 0.761) |
Copy-ready code
/* CSS */
color: #40cec2;
background-color: #40cec2;
/* Tailwind (arbitrary) */
class="text-[#40cec2] bg-[#40cec2]"
/* SCSS */
$brand: #40cec2;
/* SwiftUI */
Color(red: 0.251, green: 0.808, blue: 0.761)
/* Android */
Color.parseColor("#40cec2")
/* Flutter */
Color(0xFF40CEC2)
/* Python / OpenCV (BGR) */
(194, 206, 64)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #40cec2 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.
:root {
--brand-50: #F4FBFA;
--brand-100: #E9F7F6;
--brand-200: #CDEFEC;
--brand-300: #A6E8E2;
--brand-400: #79DDD4;
--brand-500: #40cec2;
--brand-600: #32C3B7;
--brand-700: #2AA298;
--brand-800: #21827A;
--brand-900: #1C5F59;
--brand-950: #113B38;
--brand: #40cec2;
--brand-ink: #000000;
}Colors that work with #40cec2
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #40cec2
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Thin strokes and 1px borders — they disappear on light UI
- ⚠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 | #CE404C | Directly opposite — maximum tension | |
| Analogous left | #40CE7B | Neighbour, quieter | |
| Analogous right | #4093CE | Neighbour, quieter | |
| Split-complement 1 | #CE4093 | Contrast without the clash | |
| Split-complement 2 | #CE7B40 | Contrast without the clash | |
| Triadic 1 | #C240CE | Even thirds — balanced and loud | |
| Triadic 2 | #CEC240 | Even thirds — balanced and loud | |
| Tetradic | #7B40CE | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#40cec2 text on a black background
contrast 10.83:1
#40cec2 text on a white background
contrast 1.94:1
CSS3 live lab
The quick brown fox
color: #40cec2;
background-color: #40cec2;
Glowing headline
text-shadow: 2px 2px 8px #40cec2;
Soft neon halo
text-shadow: 0 0 14px rgba(64, 206, 194, 0.45);
box-shadow: 0 12px 32px -8px rgba(64, 206, 194, 0.45);
border: 3px solid #40cec2; background: linear-gradient(135deg, #40cec2, #407BCE);
Monochromatic scale
Palettes built from #40cec2
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.
Closest color with a full write-up: Turquoise (#40e0d0) — ΔE2000 4.4 away, with its history, psychology and brand usage.
#40cec2 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#40cec2, answered
What color is #40cec2?
#40cec2 is a balanced vivid cyan, closest to Medium Turquoise (ΔE2000 2.7). It sits at 175° on the hue wheel with 59% saturation and 53% lightness, which reads as cool.
What is the RGB value of #40cec2?
rgb(64, 206, 194) — 64 red, 206 green and 194 blue out of 255, or 25.1% / 80.8% / 76.1% by channel.
Is #40cec2 a light or a dark color?
It is a mid-tone. Relative luminance is 0.4913 and perceived brightness is 68%, so black text on it reaches 10.83:1.
Should I use black or white text on #40cec2?
Black. It scores 10.83:1 against #40cec2, versus 1.94:1 for white — AAA at any size.
What is the complementary color of #40cec2?
#CE404C sits directly opposite on the wheel. Softer options are the split-complements #CE4093 and #CE7B40, which give the same contrast with far less vibration.
What colors go well with #40cec2?
For interface work: #F4FAFA as the surface, #C0EDE9 for borders, #4B9B94 for secondary text, #D33B6E as an accent and #1A655F for hover and pressed states. For a palette, the analogous pair #40CE7B and #4093CE stays calm, while #CE404C is the loudest partner.
What is #40cec2 in CMYK for printing?
cmyk(69%, 0%, 6%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #40cec2 warm or cool?
Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #40CE8E; nudged cooler, #3DA7D0.