#CDC740#CDC740

#CDC740 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.1% C 0.151 H 106.8°. Best body text is #000000 at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#CDC740
RGBrgb(205, 199, 64)
HSLhsl(57, 59%, 53%)
HSVhsv(57, 69%, 80%)
CMYKcmyk(0%, 2.9%, 68.8%, 19.6%)
CIE-LABlab(78.58, -13.60, 64.94)
CIE-LCHlch(78.58, 66.35, 101.83°)
OKLaboklab(81.06% -0.0438 0.1448)
OKLCHoklch(81.06% 0.151 106.8)
XYZxyz(46.5274, 54.1977, 12.8598)
Luminance0.5420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC740 #4046CD
analogous
#CD8140 #CDC740 #8CCD40
triadic
#CDC740 #40CDC7 #C740CD
tetradic
#CDC740 #40CD81 #4046CD #CD408C
square
#CDC740 #40CD81 #4046CD #CD408C
split-complementary
#CDC740 #408CCD #8140CD
monochromatic
#74711E #A5A02B #CDC740 #DAD571 #E6E3A1

Accessibility & contrast

On white

1.77
#CDC740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#CDC740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC740
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC740#FFFFFF#000000##000000
##CDC7401.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DAC549
Tritanopia (blue-blind)
#DCBAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc740;
/* rgb */ color: rgb(205, 199, 64);
/* oklch */ color: oklch(81.1% 0.151 106.8);
Tailwind
colors: {
  custom: {
    50: '#e0d77d',
    500: '#cdc740',
    950: '#000000',
  },
}
SCSS
$custom: #cdc740;
$custom-light: #e0d77d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc740",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 64
  },
  "hsl": {
    "h": 57.447,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.81064,
    "c": 0.1513,
    "h": 106.8
  },
  "luminance": 0.54196
}

Semantic roles & 50–950 ramp

primary
#CDC740
secondary
#34377D
accent
#4DE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC740

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

Preview Lab → · Contrast checker → · Palette generator →

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