#D3C740#D3C740

#D3C740 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.151 H 104.2°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#D3C740
RGBrgb(211, 199, 64)
HSLhsl(55, 63%, 54%)
HSVhsv(55, 70%, 83%)
CMYKcmyk(0%, 5.7%, 69.7%, 17.3%)
CIE-LABlab(79.08, -11.06, 65.60)
CIE-LCHlch(79.08, 66.53, 99.57°)
OKLaboklab(81.59% -0.0369 0.146)
OKLCHoklch(81.59% 0.151 104.2)
XYZxyz(48.2148, 55.0678, 12.9389)
Luminance0.5507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C740 #404CD3
analogous
#D37E40 #D3C740 #96D340
triadic
#D3C740 #40D3C7 #C740D3
tetradic
#D3C740 #40D37E #404CD3 #D34096
square
#D3C740 #40D37E #404CD3 #D34096
split-complementary
#D3C740 #4096D3 #7E40D3
monochromatic
#7C741D #AEA328 #D3C740 #DED672 #EAE4A3

Accessibility & contrast

On white

1.75
#D3C740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#D3C740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C740
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C740#FFFFFF#000000##000000
##D3C7401.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DCC749
Tritanopia (blue-blind)
#E3BAAC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d3c740;
/* rgb */ color: rgb(211, 199, 64);
/* oklch */ color: oklch(81.6% 0.151 104.2);
Tailwind
colors: {
  custom: {
    50: '#e4d77d',
    500: '#d3c740',
    950: '#000000',
  },
}
SCSS
$custom: #d3c740;
$custom-light: #e4d77d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c740",
  "rgb": {
    "r": 211,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 55.102,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81587,
    "c": 0.15064,
    "h": 104.2
  },
  "luminance": 0.55066
}

Semantic roles & 50–950 ramp

primary
#D3C740
secondary
#333A84
accent
#50E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C740

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

Preview Lab → · Contrast checker → · Palette generator →

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