#D2D740#D2D740

#D2D740 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 84.9% C 0.166 H 111.3°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#D2D740
RGBrgb(210, 215, 64)
HSLhsl(62, 65%, 55%)
HSVhsv(62, 70%, 84%)
CMYKcmyk(2.3%, 0%, 70.2%, 15.7%)
CIE-LABlab(83.27, -19.46, 69.69)
CIE-LCHlch(83.27, 72.36, 105.60°)
OKLaboklab(84.91% -0.0605 0.1547)
OKLCHoklch(84.91% 0.166 111.3)
XYZxyz(51.8059, 62.6740, 14.2178)
Luminance0.6267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D740 #4540D7
analogous
#D79140 #D2D740 #86D740
triadic
#D2D740 #40D2D7 #D740D2
tetradic
#D2D740 #40D791 #4540D7 #D74086
square
#D2D740 #40D791 #4540D7 #D74086
split-complementary
#D2D740 #4086D7 #9140D7
monochromatic
#7E811B #AFB426 #D2D740 #DEE273 #EAECA5

Accessibility & contrast

On white

1.55
#D2D740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.53
#D2D740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D740
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D740#FFFFFF#000000##000000
##D2D7401.001.5513.5313.53
#FFFFFF1.551.0021.0021.00
#00000013.5321.001.001.00
##00000013.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD25
Deuteranopia (green-blind)
#E8D14B
Tritanopia (blue-blind)
#E0CABA
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d2d740;
/* rgb */ color: rgb(210, 215, 64);
/* oklch */ color: oklch(84.9% 0.166 111.3);
Tailwind
colors: {
  custom: {
    50: '#e3e37f',
    500: '#d2d740',
    950: '#000000',
  },
}
SCSS
$custom: #d2d740;
$custom-light: #e3e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d740",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 64
  },
  "hsl": {
    "h": 61.987,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.8491,
    "c": 0.1661,
    "h": 111.3
  },
  "luminance": 0.62673
}

Semantic roles & 50–950 ramp

primary
#D2D740
secondary
#363388
accent
#3FE845
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D740

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D2D740 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva