#D7C140#D7C140

#D7C140 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.7% C 0.146 H 99.4°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#D7C140
RGBrgb(215, 193, 64)
HSLhsl(51, 65%, 55%)
HSVhsv(51, 70%, 84%)
CMYKcmyk(0%, 10.2%, 70.2%, 15.7%)
CIE-LABlab(77.85, -6.30, 64.50)
CIE-LCHlch(77.85, 64.81, 95.58°)
OKLaboklab(80.69% -0.0237 0.1436)
OKLCHoklch(80.69% 0.146 99.4)
XYZxyz(48.0219, 52.9594, 12.5422)
Luminance0.5296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C140 #4056D7
analogous
#D77540 #D7C140 #A2D740
triadic
#D7C140 #40D7C1 #C140D7
tetradic
#D7C140 #40D775 #4056D7 #D740A2
square
#D7C140 #40D775 #4056D7 #D740A2
split-complementary
#D7C140 #40A2D7 #7540D7
monochromatic
#81731B #B49F26 #D7C140 #E2D173 #ECE2A5

Accessibility & contrast

On white

1.81
#D7C140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#D7C140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C140
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C140#FFFFFF#000000##000000
##D7C1401.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2C
Deuteranopia (green-blind)
#D9C448
Tritanopia (blue-blind)
#E8B3A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d7c140;
/* rgb */ color: rgb(215, 193, 64);
/* oklch */ color: oklch(80.7% 0.146 99.4);
Tailwind
colors: {
  custom: {
    50: '#e7d37c',
    500: '#d7c140',
    950: '#000000',
  },
}
SCSS
$custom: #d7c140;
$custom-light: #e7d37c;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c140",
  "rgb": {
    "r": 215,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 51.258,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80693,
    "c": 0.14551,
    "h": 99.4
  },
  "luminance": 0.52957
}

Semantic roles & 50–950 ramp

primary
#D7C140
secondary
#333F88
accent
#58E83F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D7C140

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

Preview Lab → · Contrast checker → · Palette generator →

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