Skip to content

#51af5f

a balanced, soft green · cool · closest name: Medium Sea Green

RGB
81, 175, 95
HSL
129°, 37%, 50%
CMYK
54, 0, 46, 31
Luminance
0.3324

At a glance

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

Hex
#51af5f
Hue
129°
green
Saturation
37%
soft
Lightness
50%
balanced
Brightness
69%
HSV value
Perceived
57%
weighted brightness
Luminance
0.3324
WCAG relative
Temperature
Cool
66/100 cool
Color family
Green
Tone
Soft
Best ink
Black
7.65:1
Closest name
Medium Sea Green
ΔE2000 4.2
Where it sits
Hue129° of 360°
Saturation37%
Lightness50%
Temperature
Warm ← → Cool66% 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#51af5f
RGBrgb(81, 175, 95)
HSLhsl(129, 37%, 50%)
CMYKcmyk(54%, 0%, 46%, 31%)
LABlab(64.3 -45.1 32.7)
LCHlch(64.3 55.7 144.1)
OKLCHoklch(0.677 0.146 146.8)
Decimal5353311
Display P3color(display-p3 0.318 0.686 0.373)

Copy-ready code

/* CSS */
color: #51af5f;
background-color: #51af5f;
/* Tailwind (arbitrary) */
class="text-[#51af5f] bg-[#51af5f]"
/* SCSS */
$brand: #51af5f;
/* SwiftUI */
Color(red: 0.318, green: 0.686, blue: 0.373)
/* Android */
Color.parseColor("#51af5f")
/* Flutter */
Color(0xFF51AF5F)
/* Python / OpenCV (BGR) */
(95, 175, 81)

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

Accessibility — WCAG contrast

Aa
#51af5f on white: 2.75:1
AA ✗ fail · AA-large · AAA
Aa
#51af5f on black: 7.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B1A159
deuteranopia · #A49964
tritanopia · #3FAB9C

Color scale — 50 to 950

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

#F5FAF6
#EBF4ED
#D3E9D6
#B2DCB8
#8CCA95
#65B872
#51af5f
#408C4B
#33703C
#28522F
#19331D
Base = 600Lightest = 50 · #F5FAF6Darkest = 950 · #19331D
:root {
  --brand-50: #F5FAF6;
  --brand-100: #EBF4ED;
  --brand-200: #D3E9D6;
  --brand-300: #B2DCB8;
  --brand-400: #8CCA95;
  --brand-500: #65B872;
  --brand-600: #51af5f;
  --brand-700: #408C4B;
  --brand-800: #33703C;
  --brand-900: #28522F;
  --brand-950: #19331D;
  --brand: #51af5f;
  --brand-ink: #000000;
}

Colors that work with #51af5f

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#F5FAF5
Tinted page background
Border#C7E5CC
Hairlines and dividers
Muted text#4B9B57
Captions on the surface
Accent#A94CB4
Second voice, not a rival
Dark variant#28572F
Hover, pressed, headers
Light variant#EEF7EF
Selected rows, tints
Dark surface#142416
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 #51af5f

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#AF51A1
Analogous left#72AF51
Analogous right#51AF8E
Split-complement 1#8E51AF
Split-complement 2#AF5172
Triadic 1#5F51AF
Triadic 2#AF5F51
Tetradic#5172AF

RGB percentages

Red31.8%
Green68.6%
Blue37.3%

CMYK percentages

Cyan53.7%
Magenta0.0%
Yellow45.7%
Key (black)31.4%

Color previews

#51af5f text on a black background

contrast 7.65:1

Card sample

#51af5f text on a white background

contrast 2.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(81, 175, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 175, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #51af5f;
background: linear-gradient(135deg, #51af5f, #51AF9E);

Monochromatic scale

Palettes built from #51af5f

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.

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

Converts to four-color process without much drama. Proof it anyway.

#51af5f, answered

What color is #51af5f?

#51af5f is a balanced soft green, closest to Medium Sea Green (ΔE2000 4.2). It sits at 129° on the hue wheel with 37% saturation and 50% lightness, which reads as cool.

What is the RGB value of #51af5f?

rgb(81, 175, 95) — 81 red, 175 green and 95 blue out of 255, or 31.8% / 68.6% / 37.3% by channel.

Is #51af5f a light or a dark color?

It is a mid-tone. Relative luminance is 0.3324 and perceived brightness is 57%, so black text on it reaches 7.65:1.

Should I use black or white text on #51af5f?

Black. It scores 7.65:1 against #51af5f, versus 2.75:1 for white — AAA at any size.

What is the complementary color of #51af5f?

#AF51A1 sits directly opposite on the wheel. Softer options are the split-complements #8E51AF and #AF5172, which give the same contrast with far less vibration.

What colors go well with #51af5f?

For interface work: #F5FAF5 as the surface, #C7E5CC for borders, #4B9B57 for secondary text, #A94CB4 as an accent and #28572F for hover and pressed states. For a palette, the analogous pair #72AF51 and #51AF8E stays calm, while #AF51A1 is the loudest partner.

What is #51af5f in CMYK for printing?

cmyk(54%, 0%, 46%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #51af5f warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #66AF51; nudged cooler, #4EB281.

Work with #51af5f in the Color Lab