#CDB838#CDB838

#CDB838 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.8% C 0.143 H 99.6°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#CDB838
RGBrgb(205, 184, 56)
HSLhsl(52, 60%, 51%)
HSVhsv(52, 73%, 80%)
CMYKcmyk(0%, 10.2%, 72.7%, 19.6%)
CIE-LABlab(74.54, -6.32, 63.95)
CIE-LCHlch(74.54, 64.26, 95.64°)
OKLaboklab(77.84% -0.024 0.1413)
OKLCHoklch(77.84% 0.143 99.6)
XYZxyz(43.0332, 47.5477, 10.6515)
Luminance0.4755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB838 #384DCD
analogous
#CD6D38 #CDB838 #97CD38
triadic
#CDB838 #38CDB8 #B838CD
tetradic
#CDB838 #38CD6D #384DCD #CD3897
square
#CDB838 #38CD6D #384DCD #CD3897
split-complementary
#CDB838 #3897CD #6D38CD
monochromatic
#6F631C #A08F28 #CDB838 #D9C969 #E6DB9A

Accessibility & contrast

On white

2.00
#CDB838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#CDB838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB838
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB838#FFFFFF#000000##000000
##CDB8381.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB322
Deuteranopia (green-blind)
#D0BB40
Tritanopia (blue-blind)
#DDAA9F
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cdb838;
/* rgb */ color: rgb(205, 184, 56);
/* oklch */ color: oklch(77.8% 0.143 99.6);
Tailwind
colors: {
  custom: {
    50: '#e0cc77',
    500: '#cdb838',
    950: '#000000',
  },
}
SCSS
$custom: #cdb838;
$custom-light: #e0cc77;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb838",
  "rgb": {
    "r": 205,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 51.544,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.77837,
    "c": 0.14334,
    "h": 99.6
  },
  "luminance": 0.47546
}

Semantic roles & 50–950 ramp

primary
#CDB838
secondary
#8F99D1
accent
#5BE345
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CDB838

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

Preview Lab → · Contrast checker → · Palette generator →

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