#CDB948#CDB948

#CDB948 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.2% C 0.133 H 99.2°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#CDB948
RGBrgb(205, 185, 72)
HSLhsl(51, 57%, 54%)
HSVhsv(51, 65%, 80%)
CMYKcmyk(0%, 9.8%, 64.9%, 19.6%)
CIE-LABlab(74.92, -5.98, 57.97)
CIE-LCHlch(74.92, 58.28, 95.89°)
OKLaboklab(78.17% -0.0213 0.1314)
OKLCHoklch(78.17% 0.133 99.2)
XYZxyz(43.6974, 48.1469, 13.1212)
Luminance0.4814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB948 #485CCD
analogous
#CD7648 #CDB948 #9FCD48
triadic
#CDB948 #48CDB9 #B948CD
tetradic
#CDB948 #48CD76 #485CCD #CD489F
square
#CDB948 #48CD76 #485CCD #CD489F
split-complementary
#CDB948 #489FCD #7648CD
monochromatic
#796C21 #A9972E #CDB948 #DACB78 #E7DEA8

Accessibility & contrast

On white

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

On black

10.63
#CDB948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB948
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB948#FFFFFF#000000##000000
##CDB9481.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB43A
Deuteranopia (green-blind)
#CFBC4E
Tritanopia (blue-blind)
#DCACA1
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cdb948;
/* rgb */ color: rgb(205, 185, 72);
/* oklch */ color: oklch(78.2% 0.133 99.2);
Tailwind
colors: {
  custom: {
    50: '#dfcd80',
    500: '#cdb948',
    950: '#000000',
  },
}
SCSS
$custom: #cdb948;
$custom-light: #dfcd80;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb948",
  "rgb": {
    "r": 205,
    "g": 185,
    "b": 72
  },
  "hsl": {
    "h": 50.977,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.78174,
    "c": 0.13313,
    "h": 99.2
  },
  "luminance": 0.48145
}

Semantic roles & 50–950 ramp

primary
#CDB948
secondary
#9CA5D5
accent
#5EE047
background
#FEFCF8
surface
#FCF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #CDB948

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

Preview Lab → · Contrast checker → · Palette generator →

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