Skip to content

#cbdf1f

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

RGB
203, 223, 31
HSL
66°, 76%, 50%
CMYK
9, 0, 86, 13
Luminance
0.6557

At a glance

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

Hex
#cbdf1f
Hue
66°
yellow
Saturation
76%
electric
Lightness
50%
balanced
Brightness
87%
HSV value
Perceived
80%
weighted brightness
Luminance
0.6557
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
14.11:1
Closest name
Yellow Green
ΔE2000 9.1
Where it sits
Hue66° of 360°
Saturation76%
Lightness50%
Temperature
Warm ← → Cool30% 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#cbdf1f
RGBrgb(203, 223, 31)
HSLhsl(66, 76%, 50%)
CMYKcmyk(9%, 0%, 86%, 13%)
LABlab(84.8 -27.4 79.9)
LCHlch(84.8 84.5 108.9)
OKLCHoklch(0.859 0.191 116.2)
Decimal13360927
Display P3color(display-p3 0.796 0.875 0.122)

Copy-ready code

/* CSS */
color: #cbdf1f;
background-color: #cbdf1f;
/* Tailwind (arbitrary) */
class="text-[#cbdf1f] bg-[#cbdf1f]"
/* SCSS */
$brand: #cbdf1f;
/* SwiftUI */
Color(red: 0.796, green: 0.875, blue: 0.122)
/* Android */
Color.parseColor("#cbdf1f")
/* Flutter */
Color(0xFFCBDF1F)
/* Python / OpenCV (BGR) */
(31, 223, 203)

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

Accessibility — WCAG contrast

Aa
#cbdf1f on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#cbdf1f on black: 14.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #EFD300
deuteranopia · #EED537
tritanopia · #D9D2BE

Color scale — 50 to 950

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

#FBFCF3
#F7F9E7
#EFF4C8
#E8F19C
#DDEA6B
#D2E43A
#cbdf1f
#A3B319
#828F14
#5F6813
#3B410C
Base = 600Lightest = 50 · #FBFCF3Darkest = 950 · #3B410C
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F9E7;
  --brand-200: #EFF4C8;
  --brand-300: #E8F19C;
  --brand-400: #DDEA6B;
  --brand-500: #D2E43A;
  --brand-600: #cbdf1f;
  --brand-700: #A3B319;
  --brand-800: #828F14;
  --brand-900: #5F6813;
  --brand-950: #3B410C;
  --brand: #cbdf1f;
  --brand-ink: #000000;
}

Colors that work with #cbdf1f

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#FAFAF4
Tinted page background
Border#E8EDC0
Hairlines and dividers
Muted text#929B4B
Captions on the surface
Accent#1A37E4
Second voice, not a rival
Dark variant#667010
Hover, pressed, headers
Light variant#FAFCE9
Selected rows, tints
Dark surface#232414
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 #cbdf1f

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
  • 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
  • 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#331FDF
Analogous left#DF931F
Analogous right#6BDF1F
Split-complement 1#1F6BDF
Split-complement 2#931FDF
Triadic 1#1FCBDF
Triadic 2#DF1FCB
Tetradic#1FDF93

RGB percentages

Red79.6%
Green87.5%
Blue12.2%

CMYK percentages

Cyan9.0%
Magenta0.0%
Yellow86.1%
Key (black)12.5%

Color previews

#cbdf1f text on a black background

contrast 14.11:1

Card sample

#cbdf1f text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 223, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 223, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbdf1f;
background: linear-gradient(135deg, #cbdf1f, #4BDF1F);

Monochromatic scale

Palettes built from #cbdf1f

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.

#cbdf1f 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.

#cbdf1f, answered

What color is #cbdf1f?

#cbdf1f is a balanced electric yellow, closest to Yellow Green (ΔE2000 9.1). It sits at 66° on the hue wheel with 76% saturation and 50% lightness, which reads as warm.

What is the RGB value of #cbdf1f?

rgb(203, 223, 31) — 203 red, 223 green and 31 blue out of 255, or 79.6% / 87.5% / 12.2% by channel.

Is #cbdf1f a light or a dark color?

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

Should I use black or white text on #cbdf1f?

Black. It scores 14.11:1 against #cbdf1f, versus 1.49:1 for white — AAA at any size.

What is the complementary color of #cbdf1f?

#331FDF sits directly opposite on the wheel. Softer options are the split-complements #1F6BDF and #931FDF, which give the same contrast with far less vibration.

What colors go well with #cbdf1f?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #929B4B for secondary text, #1A37E4 as an accent and #667010 for hover and pressed states. For a palette, the analogous pair #DF931F and #6BDF1F stays calm, while #331FDF is the loudest partner.

What is #cbdf1f in CMYK for printing?

cmyk(9%, 0%, 86%, 13%). 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 #cbdf1f warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DFAD1F; nudged cooler, #85E21C.

Work with #cbdf1f in the Color Lab