#D7D740#D7D740

#D7D740 is a very light, vivid yellow. Relative luminance 0.634; OKLCH L 85.3% C 0.165 H 109.4°. Best body text is #000000 at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#D7D740
RGBrgb(215, 215, 64)
HSLhsl(60, 65%, 55%)
HSVhsv(60, 70%, 84%)
CMYKcmyk(0%, 0%, 70.2%, 15.7%)
CIE-LABlab(83.66, -17.39, 70.21)
CIE-LCHlch(83.66, 72.33, 103.91°)
OKLaboklab(85.32% -0.0549 0.1556)
OKLCHoklch(85.32% 0.165 109.4)
XYZxyz(53.2521, 63.4197, 14.2856)
Luminance0.6342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D740 #4040D7
analogous
#D78C40 #D7D740 #8CD740
triadic
#D7D740 #40D7D7 #D740D7
tetradic
#D7D740 #40D78C #4040D7 #D7408C
square
#D7D740 #40D78C #4040D7 #D7408C
split-complementary
#D7D740 #408CD7 #8C40D7
monochromatic
#81811B #B4B426 #D7D740 #E2E273 #ECECA5

Accessibility & contrast

On white

1.53
#D7D740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.68
#D7D740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D740
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D740#FFFFFF#000000##000000
##D7D7401.001.5313.6813.68
#FFFFFF1.531.0021.0021.00
#00000013.6821.001.001.00
##00000013.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE25
Deuteranopia (green-blind)
#EAD34B
Tritanopia (blue-blind)
#E6C9BA
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d7d740;
/* rgb */ color: rgb(215, 215, 64);
/* oklch */ color: oklch(85.3% 0.165 109.4);
Tailwind
colors: {
  custom: {
    50: '#e7e37f',
    500: '#d7d740',
    950: '#000000',
  },
}
SCSS
$custom: #d7d740;
$custom-light: #e7e37f;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d740",
  "rgb": {
    "r": 215,
    "g": 215,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.85319,
    "c": 0.16504,
    "h": 109.4
  },
  "luminance": 0.63418
}

Semantic roles & 50–950 ramp

primary
#D7D740
secondary
#333388
accent
#3FE83F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D740

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

Preview Lab → · Contrast checker → · Palette generator →

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