#CDB938#CDB938

#CDB938 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 78.0% C 0.144 H 100.2°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#CDB938
RGBrgb(205, 185, 56)
HSLhsl(52, 60%, 51%)
HSVhsv(52, 73%, 80%)
CMYKcmyk(0%, 9.8%, 72.7%, 19.6%)
CIE-LABlab(74.80, -6.84, 64.20)
CIE-LCHlch(74.80, 64.57, 96.08°)
OKLaboklab(78.05% -0.0255 0.1419)
OKLCHoklch(78.05% 0.144 100.2)
XYZxyz(43.2416, 47.9646, 10.7210)
Luminance0.4796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB938 #384CCD
analogous
#CD6E38 #CDB938 #96CD38
triadic
#CDB938 #38CDB9 #B938CD
tetradic
#CDB938 #38CD6E #384CCD #CD3896
square
#CDB938 #38CD6E #384CCD #CD3896
split-complementary
#CDB938 #3896CD #6E38CD
monochromatic
#6F641C #A09028 #CDB938 #D9CA69 #E6DB9A

Accessibility & contrast

On white

1.98
#CDB938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#CDB938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB938
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB938#FFFFFF#000000##000000
##CDB9381.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB422
Deuteranopia (green-blind)
#D0BB40
Tritanopia (blue-blind)
#DDABA0
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cdb938;
/* rgb */ color: rgb(205, 185, 56);
/* oklch */ color: oklch(78.0% 0.144 100.2);
Tailwind
colors: {
  custom: {
    50: '#e0cd77',
    500: '#cdb938',
    950: '#000000',
  },
}
SCSS
$custom: #cdb938;
$custom-light: #e0cd77;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb938",
  "rgb": {
    "r": 205,
    "g": 185,
    "b": 56
  },
  "hsl": {
    "h": 51.946,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.78046,
    "c": 0.14413,
    "h": 100.2
  },
  "luminance": 0.47963
}

Semantic roles & 50–950 ramp

primary
#CDB938
secondary
#8F98D1
accent
#5AE345
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CDB938

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

Preview Lab → · Contrast checker → · Palette generator →

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