#CDB338#CDB338

#CDB338 is a light, vivid yellow. Relative luminance 0.455; OKLCH L 76.8% C 0.140 H 96.8°. Best body text is #000000 at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#CDB338
RGBrgb(205, 179, 56)
HSLhsl(50, 60%, 51%)
HSVhsv(50, 73%, 80%)
CMYKcmyk(0%, 12.7%, 72.7%, 19.6%)
CIE-LABlab(73.22, -3.71, 62.67)
CIE-LCHlch(73.22, 62.78, 93.39°)
OKLaboklab(76.8% -0.0166 0.1386)
OKLCHoklch(76.8% 0.14 96.8)
XYZxyz(42.0129, 45.5071, 10.3114)
Luminance0.4551 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB338 #3852CD
analogous
#CD6838 #CDB338 #9CCD38
triadic
#CDB338 #38CDB3 #B338CD
tetradic
#CDB338 #38CD68 #3852CD #CD389C
square
#CDB338 #38CD68 #3852CD #CD389C
split-complementary
#CDB338 #389CCD #6838CD
monochromatic
#6F601C #A08B28 #CDB338 #D9C669 #E6D89A

Accessibility & contrast

On white

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

On black

10.10
#CDB338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB338
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB338#FFFFFF#000000##000000
##CDB3381.002.0810.1010.10
#FFFFFF2.081.0021.0021.00
#00000010.1021.001.001.00
##00000010.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AF24
Deuteranopia (green-blind)
#CCB73F
Tritanopia (blue-blind)
#DDA59B
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cdb338;
/* rgb */ color: rgb(205, 179, 56);
/* oklch */ color: oklch(76.8% 0.140 96.8);
Tailwind
colors: {
  custom: {
    50: '#e0c977',
    500: '#cdb338',
    950: '#000000',
  },
}
SCSS
$custom: #cdb338;
$custom-light: #e0c977;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb338",
  "rgb": {
    "r": 205,
    "g": 179,
    "b": 56
  },
  "hsl": {
    "h": 49.53,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.76796,
    "c": 0.13961,
    "h": 96.8
  },
  "luminance": 0.45505
}

Semantic roles & 50–950 ramp

primary
#CDB338
secondary
#8F9BD1
accent
#60E345
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CDB338

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

Preview Lab → · Contrast checker → · Palette generator →

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