#D7D248#D7D248

#D7D248 is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.3% C 0.155 H 107.3°. Best body text is #000000 at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#D7D248
RGBrgb(215, 210, 72)
HSLhsl(58, 64%, 56%)
HSVhsv(58, 67%, 84%)
CMYKcmyk(0%, 2.3%, 66.5%, 15.7%)
CIE-LABlab(82.38, -14.50, 65.98)
CIE-LCHlch(82.38, 67.56, 102.39°)
OKLaboklab(84.32% -0.046 0.148)
OKLCHoklch(84.32% 0.155 107.3)
XYZxyz(52.2425, 61.0099, 15.1538)
Luminance0.6101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D248 #484DD7
analogous
#D78B48 #D7D248 #95D748
triadic
#D7D248 #48D7D2 #D248D7
tetradic
#D7D248 #48D78B #484DD7 #D74895
square
#D7D248 #48D78B #484DD7 #D74895
split-complementary
#D7D248 #4895D7 #8B48D7
monochromatic
#87831E #B9B429 #D7D248 #E2DE7A #EDEBAC

Accessibility & contrast

On white

1.59
#D7D248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.20
#D7D248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D248
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D248#FFFFFF#000000##000000
##D7D2481.001.5913.2013.20
#FFFFFF1.591.0021.0021.00
#00000013.2021.001.001.00
##00000013.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA34
Deuteranopia (green-blind)
#E6CF51
Tritanopia (blue-blind)
#E6C5B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d7d248;
/* rgb */ color: rgb(215, 210, 72);
/* oklch */ color: oklch(84.3% 0.155 107.3);
Tailwind
colors: {
  custom: {
    50: '#e7df82',
    500: '#d7d248',
    950: '#000000',
  },
}
SCSS
$custom: #d7d248;
$custom-light: #e7df82;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d248",
  "rgb": {
    "r": 215,
    "g": 210,
    "b": 72
  },
  "hsl": {
    "h": 57.902,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.84315,
    "c": 0.15504,
    "h": 107.3
  },
  "luminance": 0.61008
}

Semantic roles & 50–950 ramp

primary
#D7D248
secondary
#36398D
accent
#46E741
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D7D248

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

Preview Lab → · Contrast checker → · Palette generator →

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