#CDC742#CDC742

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

Color values

HEX#CDC742
RGBrgb(205, 199, 66)
HSLhsl(57, 58%, 53%)
HSVhsv(57, 68%, 80%)
CMYKcmyk(0%, 2.9%, 67.8%, 19.6%)
CIE-LABlab(78.59, -13.50, 64.19)
CIE-LCHlch(78.59, 65.59, 101.87°)
OKLaboklab(81.08% -0.0433 0.1436)
OKLCHoklch(81.08% 0.15 106.8)
XYZxyz(46.5854, 54.2209, 13.1650)
Luminance0.5422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC742 #4248CD
analogous
#CD8142 #CDC742 #8DCD42
triadic
#CDC742 #42CDC7 #C742CD
tetradic
#CDC742 #42CD81 #4248CD #CD428D
square
#CDC742 #42CD81 #4248CD #CD428D
split-complementary
#CDC742 #428DCD #8142CD
monochromatic
#76721F #A6A12C #CDC742 #DAD572 #E7E4A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC742#FFFFFF#000000##000000
##CDC7421.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)
#D7C02E
Deuteranopia (green-blind)
#DAC54B
Tritanopia (blue-blind)
#DCBAAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc742;
/* rgb */ color: rgb(205, 199, 66);
/* oklch */ color: oklch(81.1% 0.150 106.8);
Tailwind
colors: {
  custom: {
    50: '#e0d77e',
    500: '#cdc742',
    950: '#000000',
  },
}
SCSS
$custom: #cdc742;
$custom-light: #e0d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc742",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 57.41,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.81079,
    "c": 0.14997,
    "h": 106.8
  },
  "luminance": 0.54219
}

Semantic roles & 50–950 ramp

primary
#CDC742
secondary
#35387E
accent
#4DE146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CDC742

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

Preview Lab → · Contrast checker → · Palette generator →

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