Skip to content

#5af6ab

a light, electric green · cool · closest name: Medium Spring Green

RGB
90, 246, 171
HSL
151°, 90%, 66%
CMYK
63, 0, 31, 4
Luminance
0.7103

At a glance

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

Hex
#5af6ab
Hue
151°
green
Saturation
90%
electric
Lightness
66%
light
Brightness
96%
HSV value
Perceived
80%
weighted brightness
Luminance
0.7103
WCAG relative
Temperature
Cool
76/100 cool
Color family
Green
Tone
Electric
Best ink
Black
15.21:1
Closest name
Medium Spring Green
ΔE2000 3.8
Where it sits
Hue151° of 360°
Saturation90%
Lightness66%
Temperature
Warm ← → Cool76% 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#5af6ab
RGBrgb(90, 246, 171)
HSLhsl(151, 90%, 66%)
CMYKcmyk(63%, 0%, 31%, 4%)
LABlab(87.5 -57.8 24.3)
LCHlch(87.5 62.7 157.2)
OKLCHoklch(0.872 0.169 158.7)
Decimal5961387
Display P3color(display-p3 0.353 0.965 0.671)

Copy-ready code

/* CSS */
color: #5af6ab;
background-color: #5af6ab;
/* Tailwind (arbitrary) */
class="text-[#5af6ab] bg-[#5af6ab]"
/* SCSS */
$brand: #5af6ab;
/* SwiftUI */
Color(red: 0.353, green: 0.965, blue: 0.671)
/* Android */
Color.parseColor("#5af6ab")
/* Flutter */
Color(0xFF5AF6AB)
/* Python / OpenCV (BGR) */
(171, 246, 90)

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 #5af6ab · 15.21:1
Use #000000AAA at every size.
Aa
White text · 1.38:1
AA fail · AA large fail · AAA fail
Aa
Black text · 15.21:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #5af6ab as text scores 1.38:1 on white and 15.21:1 on black.

Accessibility — WCAG contrast

Aa
#5af6ab on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#5af6ab on black: 15.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F4E4A6
deuteranopia · #DFD5B0
tritanopia · #00F5E2

Color scale — 50 to 950

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

#F2FDF8
#E5FBF0
#C3F8DF
#95F9C9
#5af6ab
#2AF393
#0DE87F
#0BC16A
#089B55
#0B703F
#074628
Base = 400Lightest = 50 · #F2FDF8Darkest = 950 · #074628
:root {
  --brand-50: #F2FDF8;
  --brand-100: #E5FBF0;
  --brand-200: #C3F8DF;
  --brand-300: #95F9C9;
  --brand-400: #5af6ab;
  --brand-500: #2AF393;
  --brand-600: #0DE87F;
  --brand-700: #0BC16A;
  --brand-800: #089B55;
  --brand-900: #0B703F;
  --brand-950: #074628;
  --brand: #5af6ab;
  --brand-ink: #000000;
}

Colors that work with #5af6ab

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#F4FAF7
Tinted page background
Border#C0EDD7
Hairlines and dividers
Muted text#4B9B74
Captions on the surface
Accent#C60692
Second voice, not a rival
Dark variant#077942
Hover, pressed, headers
Light variant#E7FEF3
Selected rows, tints
Dark surface#14241C
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 #5af6ab

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White 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#F65AA5
Analogous left#5AF65D
Analogous right#5AF3F6
Split-complement 1#F65AF3
Split-complement 2#F65D5A
Triadic 1#AB5AF6
Triadic 2#F6AB5A
Tetradic#5D5AF6

RGB percentages

Red35.3%
Green96.5%
Blue67.1%

CMYK percentages

Cyan63.4%
Magenta0.0%
Yellow30.5%
Key (black)3.5%

Color previews

#5af6ab text on a black background

contrast 15.21:1

Card sample

#5af6ab text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(90, 246, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 246, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5af6ab;
background: linear-gradient(135deg, #5af6ab, #5AD9F6);

Monochromatic scale

Palettes built from #5af6ab

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.

#5af6ab in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
SustainabilityFinanceHealth and wellnessAgriculture
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#5af6ab, answered

What color is #5af6ab?

#5af6ab is a light electric green, closest to Medium Spring Green (ΔE2000 3.8). It sits at 151° on the hue wheel with 90% saturation and 66% lightness, which reads as cool.

What is the RGB value of #5af6ab?

rgb(90, 246, 171) — 90 red, 246 green and 171 blue out of 255, or 35.3% / 96.5% / 67.1% by channel.

Is #5af6ab a light or a dark color?

It is a light color. Relative luminance is 0.7103 and perceived brightness is 80%, so black text on it reaches 15.21:1.

Should I use black or white text on #5af6ab?

Black. It scores 15.21:1 against #5af6ab, versus 1.38:1 for white — AAA at any size.

What is the complementary color of #5af6ab?

#F65AA5 sits directly opposite on the wheel. Softer options are the split-complements #F65AF3 and #F65D5A, which give the same contrast with far less vibration.

What colors go well with #5af6ab?

For interface work: #F4FAF7 as the surface, #C0EDD7 for borders, #4B9B74 for secondary text, #C60692 as an accent and #077942 for hover and pressed states. For a palette, the analogous pair #5AF65D and #5AF3F6 stays calm, while #F65AA5 is the loudest partner.

What is #5af6ab in CMYK for printing?

cmyk(63%, 0%, 31%, 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 #5af6ab warm or cool?

Cool — it scores 76 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5AF672; nudged cooler, #58F8E6.

Work with #5af6ab in the Color Lab