#CDAF54#CDAF54

#CDAF54 is a light, moderate yellow. Relative luminance 0.443; OKLCH L 76.2% C 0.116 H 91.2°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#CDAF54
RGBrgb(205, 175, 84)
HSLhsl(45, 55%, 57%)
HSVhsv(45, 59%, 80%)
CMYKcmyk(0%, 14.6%, 59%, 19.6%)
CIE-LABlab(72.42, 0.06, 49.81)
CIE-LCHlch(72.42, 49.81, 89.93°)
OKLaboklab(76.23% -0.0025 0.1157)
OKLCHoklch(76.23% 0.116 91.2)
XYZxyz(42.1089, 44.2814, 14.7150)
Luminance0.4428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDAF54 #5472CD
analogous
#CD7354 #CDAF54 #AFCD54
triadic
#CDAF54 #54CDAF #AF54CD
tetradic
#CDAF54 #54CD73 #5472CD #CD54AF
square
#CDAF54 #54CD73 #5472CD #CD54AF
split-complementary
#CDAF54 #54AFCD #7354CD
monochromatic
#816A26 #B09134 #CDAF54 #DBC583 #E9DBB3

Accessibility & contrast

On white

2.13
#CDAF54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#CDAF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDAF54
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDAF54#FFFFFF#000000##000000
##CDAF541.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AD4B
Deuteranopia (green-blind)
#C7B558
Tritanopia (blue-blind)
#DCA39B
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cdaf54;
/* rgb */ color: rgb(205, 175, 84);
/* oklch */ color: oklch(76.2% 0.116 91.2);
Tailwind
colors: {
  custom: {
    50: '#dfc687',
    500: '#cdaf54',
    950: '#000000',
  },
}
SCSS
$custom: #cdaf54;
$custom-light: #dfc687;
$custom-dark: #000000;
JSON
{
  "hex": "#cdaf54",
  "rgb": {
    "r": 205,
    "g": 175,
    "b": 84
  },
  "hsl": {
    "h": 45.124,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.76232,
    "c": 0.11569,
    "h": 91.2
  },
  "luminance": 0.44279
}

Semantic roles & 50–950 ramp

primary
#CDAF54
secondary
#A6B2D7
accent
#6EDE4A
background
#FEFCF8
surface
#FCF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #CDAF54

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

Preview Lab → · Contrast checker → · Palette generator →

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