#D7C248#D7C248

#D7C248 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.141 H 99.4°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#D7C248
RGBrgb(215, 194, 72)
HSLhsl(51, 64%, 56%)
HSVhsv(51, 67%, 84%)
CMYKcmyk(0%, 9.8%, 66.5%, 15.7%)
CIE-LABlab(78.17, -6.39, 61.65)
CIE-LCHlch(78.17, 61.98, 95.91°)
OKLaboklab(80.96% -0.023 0.1389)
OKLCHoklch(80.96% 0.141 99.4)
XYZxyz(48.4880, 53.5007, 13.9023)
Luminance0.5350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C248 #485DD7
analogous
#D77B48 #D7C248 #A5D748
triadic
#D7C248 #48D7C2 #C248D7
tetradic
#D7C248 #48D77B #485DD7 #D748A5
square
#D7C248 #48D77B #485DD7 #D748A5
split-complementary
#D7C248 #48A5D7 #7B48D7
monochromatic
#87781E #B9A429 #D7C248 #E2D37A #EDE3AC

Accessibility & contrast

On white

1.79
#D7C248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#D7C248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C248
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C248#FFFFFF#000000##000000
##D7C2481.001.7911.7011.70
#FFFFFF1.791.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD38
Deuteranopia (green-blind)
#DAC54F
Tritanopia (blue-blind)
#E7B4A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c248;
/* rgb */ color: rgb(215, 194, 72);
/* oklch */ color: oklch(81.0% 0.141 99.4);
Tailwind
colors: {
  custom: {
    50: '#e7d481',
    500: '#d7c248',
    950: '#000000',
  },
}
SCSS
$custom: #d7c248;
$custom-light: #e7d481;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c248",
  "rgb": {
    "r": 215,
    "g": 194,
    "b": 72
  },
  "hsl": {
    "h": 51.189,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80964,
    "c": 0.1408,
    "h": 99.4
  },
  "luminance": 0.53499
}

Semantic roles & 50–950 ramp

primary
#D7C248
secondary
#36438D
accent
#59E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C248

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

Preview Lab → · Contrast checker → · Palette generator →

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