Skip to content

#8f8f15

a dark, vivid yellow · cool · closest name: olive

RGB
143, 143, 21
HSL
60°, 74%, 32%
CMYK
0, 0, 85, 44
Luminance
0.2554

Every format

HEX#8f8f15
RGBrgb(143, 143, 21)
HSLhsl(60, 74%, 32%)
CMYKcmyk(0%, 0%, 85%, 44%)
LABlab(57.6 -13.6 57.6)
LCHlch(57.6 59.2 103.3)
OKLCHoklch(0.630 0.132 109.6)

Copy-ready code

/* CSS */
color: #8f8f15;
background-color: #8f8f15;
/* Tailwind (arbitrary) */
class="text-[#8f8f15] bg-[#8f8f15]"
/* SCSS */
$brand: #8f8f15;
/* SwiftUI */
Color(red: 0.561, green: 0.561, blue: 0.082)
/* Android */
Color.parseColor("#8f8f15")

Accessibility — WCAG contrast

Aa
#8f8f15 on white: 3.44:1
AA ✗ fail · AA-large · AAA
Aa
#8f8f15 on black: 6.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red56.1%
Green56.1%
Blue8.2%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow85.3%
Key (black)43.9%

Color previews

#8f8f15 text on a black background

contrast 6.11:1

Card sample

#8f8f15 text on a white background

contrast 3.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 143, 21, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 143, 21, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f8f15;
background: linear-gradient(135deg, #8f8f15, #3E8F15);

Monochromatic scale

Palettes built from #8f8f15

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #8f8f15 in the Color Lab