#CDB340#CDB340

#CDB340 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.9% C 0.134 H 96.2°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#CDB340
RGBrgb(205, 179, 64)
HSLhsl(49, 59%, 53%)
HSVhsv(49, 69%, 80%)
CMYKcmyk(0%, 12.7%, 68.8%, 19.6%)
CIE-LABlab(73.28, -3.31, 59.60)
CIE-LCHlch(73.28, 59.69, 93.18°)
OKLaboklab(76.86% -0.0146 0.1336)
OKLCHoklch(76.86% 0.134 96.2)
XYZxyz(42.2244, 45.5917, 11.4255)
Luminance0.4559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB340 #405ACD
analogous
#CD6C40 #CDB340 #A1CD40
triadic
#CDB340 #40CDB3 #B340CD
tetradic
#CDB340 #40CD6C #405ACD #CD40A1
square
#CDB340 #40CD6C #405ACD #CD40A1
split-complementary
#CDB340 #40A1CD #6C40CD
monochromatic
#74641E #A58E2B #CDB340 #DAC671 #E6DAA1

Accessibility & contrast

On white

2.08
#CDB340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#CDB340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB340
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB340#FFFFFF#000000##000000
##CDB3401.002.0810.1210.12
#FFFFFF2.081.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF30
Deuteranopia (green-blind)
#CCB846
Tritanopia (blue-blind)
#DDA69C
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cdb340;
/* rgb */ color: rgb(205, 179, 64);
/* oklch */ color: oklch(76.9% 0.134 96.2);
Tailwind
colors: {
  custom: {
    50: '#e0c97b',
    500: '#cdb340',
    950: '#000000',
  },
}
SCSS
$custom: #cdb340;
$custom-light: #e0c97b;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb340",
  "rgb": {
    "r": 205,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 48.936,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.76857,
    "c": 0.13434,
    "h": 96.2
  },
  "luminance": 0.4559
}

Semantic roles & 50–950 ramp

primary
#CDB340
secondary
#96A1D3
accent
#63E246
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #CDB340

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

Preview Lab → · Contrast checker → · Palette generator →

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