#D4C340#D4C340

#D4C340 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.8% C 0.147 H 101.8°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#D4C340
RGBrgb(212, 195, 64)
HSLhsl(53, 63%, 54%)
HSVhsv(53, 70%, 83%)
CMYKcmyk(0%, 8%, 69.8%, 16.9%)
CIE-LABlab(78.11, -8.60, 64.67)
CIE-LCHlch(78.11, 65.24, 97.58°)
OKLaboklab(80.84% -0.03 0.144)
OKLCHoklch(80.84% 0.147 101.8)
XYZxyz(47.5940, 53.3995, 12.6497)
Luminance0.5340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C340 #4051D4
analogous
#D47940 #D4C340 #9BD440
triadic
#D4C340 #40D4C3 #C340D4
tetradic
#D4C340 #40D479 #4051D4 #D4409B
square
#D4C340 #40D479 #4051D4 #D4409B
split-complementary
#D4C340 #409BD4 #7940D4
monochromatic
#7D721C #AFA027 #D4C340 #DFD372 #EAE2A4

Accessibility & contrast

On white

1.80
#D4C340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.68
#D4C340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C340
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C340#FFFFFF#000000##000000
##D4C3401.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2C
Deuteranopia (green-blind)
#DAC448
Tritanopia (blue-blind)
#E4B5A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c340;
/* rgb */ color: rgb(212, 195, 64);
/* oklch */ color: oklch(80.8% 0.147 101.8);
Tailwind
colors: {
  custom: {
    50: '#e5d47d',
    500: '#d4c340',
    950: '#000000',
  },
}
SCSS
$custom: #d4c340;
$custom-light: #e5d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c340",
  "rgb": {
    "r": 212,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 53.108,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.80836,
    "c": 0.14713,
    "h": 101.8
  },
  "luminance": 0.53397
}

Semantic roles & 50–950 ramp

primary
#D4C340
secondary
#333D85
accent
#54E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C340

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

Preview Lab → · Contrast checker → · Palette generator →

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