#CDB538#CDB538

#CDB538 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 77.2% C 0.141 H 98.0°. Best body text is #000000 at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#CDB538
RGBrgb(205, 181, 56)
HSLhsl(50, 60%, 51%)
HSVhsv(50, 73%, 80%)
CMYKcmyk(0%, 11.7%, 72.7%, 19.6%)
CIE-LABlab(73.75, -4.76, 63.18)
CIE-LCHlch(73.75, 63.36, 94.31°)
OKLaboklab(77.21% -0.0196 0.1397)
OKLCHoklch(77.21% 0.141 98)
XYZxyz(42.4166, 46.3145, 10.4460)
Luminance0.4631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDB538 #3850CD
analogous
#CD6A38 #CDB538 #9ACD38
triadic
#CDB538 #38CDB5 #B538CD
tetradic
#CDB538 #38CD6A #3850CD #CD389A
square
#CDB538 #38CD6A #3850CD #CD389A
split-complementary
#CDB538 #389ACD #6A38CD
monochromatic
#6F611C #A08C28 #CDB538 #D9C769 #E6D99A

Accessibility & contrast

On white

2.05
#CDB538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.26
#CDB538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDB538
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDB538#FFFFFF#000000##000000
##CDB5381.002.0510.2610.26
#FFFFFF2.051.0021.0021.00
#00000010.2621.001.001.00
##00000010.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B123
Deuteranopia (green-blind)
#CDB940
Tritanopia (blue-blind)
#DDA79C
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cdb538;
/* rgb */ color: rgb(205, 181, 56);
/* oklch */ color: oklch(77.2% 0.141 98.0);
Tailwind
colors: {
  custom: {
    50: '#e0ca77',
    500: '#cdb538',
    950: '#000000',
  },
}
SCSS
$custom: #cdb538;
$custom-light: #e0ca77;
$custom-dark: #000000;
JSON
{
  "hex": "#cdb538",
  "rgb": {
    "r": 205,
    "g": 181,
    "b": 56
  },
  "hsl": {
    "h": 50.336,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.77211,
    "c": 0.14106,
    "h": 98
  },
  "luminance": 0.46312
}

Semantic roles & 50–950 ramp

primary
#CDB538
secondary
#8F9AD1
accent
#5EE345
background
#FEFCF7
surface
#FCF8EE
border
#D5D1C9
text
#161309
muted
#84827B

Preview Lab

Preview with #CDB538

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

Preview Lab → · Contrast checker → · Palette generator →

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