Skip to content

#d2e331

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

RGB
210, 227, 49
HSL
66°, 76%, 54%
CMYK
8, 0, 78, 11
Luminance
0.6886

At a glance

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

Hex
#d2e331
Hue
66°
yellow
Saturation
76%
electric
Lightness
54%
balanced
Brightness
89%
HSV value
Perceived
82%
weighted brightness
Luminance
0.6886
WCAG relative
Temperature
Warm
30/100 cool
Color family
Yellow
Tone
Electric
Best ink
Black
14.77:1
Closest name
Yellow
ΔE2000 8.4
Where it sits
Hue66° of 360°
Saturation76%
Lightness54%
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#d2e331
RGBrgb(210, 227, 49)
HSLhsl(66, 76%, 54%)
CMYKcmyk(8%, 0%, 78%, 11%)
LABlab(86.4 -25.9 77.3)
LCHlch(86.4 81.5 108.5)
OKLCHoklch(0.874 0.186 115.3)
Decimal13820721
Display P3color(display-p3 0.824 0.890 0.192)

Copy-ready code

/* CSS */
color: #d2e331;
background-color: #d2e331;
/* Tailwind (arbitrary) */
class="text-[#d2e331] bg-[#d2e331]"
/* SCSS */
$brand: #d2e331;
/* SwiftUI */
Color(red: 0.824, green: 0.890, blue: 0.192)
/* Android */
Color.parseColor("#d2e331")
/* Flutter */
Color(0xFFD2E331)
/* Python / OpenCV (BGR) */
(49, 227, 210)

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

Accessibility — WCAG contrast

Aa
#d2e331 on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#d2e331 on black: 14.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #F3D700
deuteranopia · #F2DA42
tritanopia · #E0D6C3

Color scale — 50 to 950

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

#FBFCF3
#F7F9E7
#F0F4C8
#E9F29C
#DFEB6B
#d2e331
#C6D81D
#A5B418
#849014
#606812
#3C410B
Base = 500Lightest = 50 · #FBFCF3Darkest = 950 · #3C410B
:root {
  --brand-50: #FBFCF3;
  --brand-100: #F7F9E7;
  --brand-200: #F0F4C8;
  --brand-300: #E9F29C;
  --brand-400: #DFEB6B;
  --brand-500: #d2e331;
  --brand-600: #C6D81D;
  --brand-700: #A5B418;
  --brand-800: #849014;
  --brand-900: #606812;
  --brand-950: #3C410B;
  --brand: #d2e331;
  --brand-ink: #000000;
}

Colors that work with #d2e331

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#939B4B
Captions on the surface
Accent#2C49E8
Second voice, not a rival
Dark variant#67700F
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 #d2e331

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#4231E3
Analogous left#E39B31
Analogous right#79E331
Split-complement 1#3179E3
Split-complement 2#9B31E3
Triadic 1#31D2E3
Triadic 2#E331D2
Tetradic#31E39B

RGB percentages

Red82.4%
Green89.0%
Blue19.2%

CMYK percentages

Cyan7.5%
Magenta0.0%
Yellow78.4%
Key (black)11.0%

Color previews

#d2e331 text on a black background

contrast 14.77:1

Card sample

#d2e331 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 227, 49, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 227, 49, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2e331;
background: linear-gradient(135deg, #d2e331, #5BE331);

Monochromatic scale

Palettes built from #d2e331

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.

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

#d2e331, answered

What color is #d2e331?

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

What is the RGB value of #d2e331?

rgb(210, 227, 49) — 210 red, 227 green and 49 blue out of 255, or 82.4% / 89% / 19.2% by channel.

Is #d2e331 a light or a dark color?

It is a light color. Relative luminance is 0.6886 and perceived brightness is 82%, so black text on it reaches 14.77:1.

Should I use black or white text on #d2e331?

Black. It scores 14.77:1 against #d2e331, versus 1.42:1 for white — AAA at any size.

What is the complementary color of #d2e331?

#4231E3 sits directly opposite on the wheel. Softer options are the split-complements #3179E3 and #9B31E3, which give the same contrast with far less vibration.

What colors go well with #d2e331?

For interface work: #FAFAF4 as the surface, #E8EDC0 for borders, #939B4B for secondary text, #2C49E8 as an accent and #67700F for hover and pressed states. For a palette, the analogous pair #E39B31 and #79E331 stays calm, while #4231E3 is the loudest partner.

What is #d2e331 in CMYK for printing?

cmyk(8%, 0%, 78%, 11%). 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 #d2e331 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 #E3B331; nudged cooler, #91E52F.

Work with #d2e331 in the Color Lab