Skip to content

#0afb2d

a balanced, electric green · cool · closest name: lime

RGB
10, 251, 45
HSL
129°, 97%, 51%
CMYK
96, 0, 82, 2
Luminance
0.6925

Every format

HEX#0afb2d
RGBrgb(10, 251, 45)
HSLhsl(129, 97%, 51%)
CMYKcmyk(96%, 0%, 82%, 2%)
LABlab(86.6 -83.7 76.0)
LCHlch(86.6 113.0 137.7)
OKLCHoklch(0.858 0.282 143.4)

Copy-ready code

/* CSS */
color: #0afb2d;
background-color: #0afb2d;
/* Tailwind (arbitrary) */
class="text-[#0afb2d] bg-[#0afb2d]"
/* SCSS */
$brand: #0afb2d;
/* SwiftUI */
Color(red: 0.039, green: 0.984, blue: 0.176)
/* Android */
Color.parseColor("#0afb2d")

Accessibility — WCAG contrast

Aa
#0afb2d on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#0afb2d on black: 14.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.9%
Green98.4%
Blue17.6%

CMYK percentages

Cyan96.0%
Magenta0.0%
Yellow82.1%
Key (black)1.6%

Color previews

#0afb2d text on a black background

contrast 14.85:1

Card sample

#0afb2d text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0afb2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0afb2d in the Color Lab