Skip to content

#96af0f

a dark, electric yellow · warm · closest name: Yellow Green

RGB
150, 175, 15
HSL
69°, 84%, 37%
CMYK
14, 0, 91, 31
Luminance
0.3718

At a glance

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

Hex
#96af0f
Hue
69°
yellow
Saturation
84%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3718
WCAG relative
Temperature
Warm
33/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
8.44:1
Closest name
Yellow Green
ΔE2000 8.5
Where it sits
Hue69° of 360°
Saturation84%
Lightness37%
Temperature
Warm ← → Cool33% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#96af0f
RGBrgb(150, 175, 15)
HSLhsl(69, 84%, 37%)
CMYKcmyk(14%, 0%, 91%, 31%)
LABlab(67.4 -26.9 67.1)
LCHlch(67.4 72.2 111.8)
OKLCHoklch(0.710 0.165 119.6)
Decimal9875215
Display P3color(display-p3 0.588 0.686 0.059)

Copy-ready code

/* CSS */
color: #96af0f;
background-color: #96af0f;
/* Tailwind (arbitrary) */
class="text-[#96af0f] bg-[#96af0f]"
/* SCSS */
$brand: #96af0f;
/* SwiftUI */
Color(red: 0.588, green: 0.686, blue: 0.059)
/* Android */
Color.parseColor("#96af0f")
/* Flutter */
Color(0xFF96AF0F)
/* Python / OpenCV (BGR) */
(15, 175, 150)

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

Accessibility — WCAG contrast

Aa
#96af0f on white: 2.49:1
AA ✗ fail · AA-large · AAA
Aa
#96af0f on black: 8.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BBA400
deuteranopia · #B8A526
tritanopia · #A0A595

Color scale — 50 to 950

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

#FBFCF2
#F7FAE6
#EFF6C5
#E7F698
#DCF264
#D0ED30
#C1E113
#96af0f
#81960D
#5E6D0E
#3B4409
Base = 700Lightest = 50 · #FBFCF2Darkest = 950 · #3B4409
:root {
  --brand-50: #FBFCF2;
  --brand-100: #F7FAE6;
  --brand-200: #EFF6C5;
  --brand-300: #E7F698;
  --brand-400: #DCF264;
  --brand-500: #D0ED30;
  --brand-600: #C1E113;
  --brand-700: #96af0f;
  --brand-800: #81960D;
  --brand-900: #5E6D0E;
  --brand-950: #3B4409;
  --brand: #96af0f;
  --brand-ink: #000000;
}

Colors that work with #96af0f

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#F9FAF4
Tinted page background
Border#E6EDC0
Hairlines and dividers
Muted text#8E9B4B
Captions on the surface
Accent#0B1BB3
Second voice, not a rival
Dark variant#65750A
Hover, pressed, headers
Light variant#FAFDE8
Selected rows, tints
Dark surface#222414
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 #96af0f

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#280FAF
Analogous left#AF780F
Analogous right#46AF0F
Split-complement 1#0F46AF
Split-complement 2#780FAF
Triadic 1#0F96AF
Triadic 2#AF0F96
Tetradic#0FAF78

RGB percentages

Red58.8%
Green68.6%
Blue5.9%

CMYK percentages

Cyan14.3%
Magenta0.0%
Yellow91.4%
Key (black)31.4%

Color previews

#96af0f text on a black background

contrast 8.44:1

Card sample

#96af0f text on a white background

contrast 2.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #96af0f;
Background color
Panel with #96af0f background
background-color: #96af0f;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(150, 175, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(150, 175, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #96af0f;
background: linear-gradient(135deg, #96af0f, #2BAF0F);

Monochromatic scale

Palettes built from #96af0f

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.

#96af0f in the real world

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

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#96af0f, answered

What color is #96af0f?

#96af0f is a dark electric yellow, closest to Yellow Green (ΔE2000 8.5). It sits at 69° on the hue wheel with 84% saturation and 37% lightness, which reads as warm.

What is the RGB value of #96af0f?

rgb(150, 175, 15) — 150 red, 175 green and 15 blue out of 255, or 58.8% / 68.6% / 5.9% by channel.

Is #96af0f a light or a dark color?

It is a mid-tone. Relative luminance is 0.3718 and perceived brightness is 62%, so black text on it reaches 8.44:1.

Should I use black or white text on #96af0f?

Black. It scores 8.44:1 against #96af0f, versus 2.49:1 for white — AAA at any size.

What is the complementary color of #96af0f?

#280FAF sits directly opposite on the wheel. Softer options are the split-complements #0F46AF and #780FAF, which give the same contrast with far less vibration.

What colors go well with #96af0f?

For interface work: #F9FAF4 as the surface, #E6EDC0 for borders, #8E9B4B for secondary text, #0B1BB3 as an accent and #65750A for hover and pressed states. For a palette, the analogous pair #AF780F and #46AF0F stays calm, while #280FAF is the loudest partner.

What is #96af0f in CMYK for printing?

cmyk(14%, 0%, 91%, 31%). 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 #96af0f warm or cool?

Warm — it scores 33 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF8E0F; nudged cooler, #5BB10D.

Work with #96af0f in the Color Lab