#CAC754#CAC754

#CAC754 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.0% C 0.137 H 107.7°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#CAC754
RGBrgb(202, 199, 84)
HSLhsl(58, 53%, 56%)
HSVhsv(58, 58%, 79%)
CMYKcmyk(0%, 1.5%, 58.4%, 20.8%)
CIE-LABlab(78.49, -13.63, 56.55)
CIE-LCHlch(78.49, 58.17, 103.55°)
OKLaboklab(80.98% -0.0415 0.1302)
OKLCHoklch(80.98% 0.137 107.7)
XYZxyz(46.3822, 54.0449, 16.3742)
Luminance0.5404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC754 #5457CA
analogous
#CA8C54 #CAC754 #92CA54
triadic
#CAC754 #54CAC7 #C754CA
tetradic
#CAC754 #54CA8C #5457CA #CA5492
square
#CAC754 #54CA8C #5457CA #CA5492
split-complementary
#CAC754 #5492CA #8C54CA
monochromatic
#7D7B27 #ACA935 #CAC754 #D8D683 #E7E6B1

Accessibility & contrast

On white

1.78
#CAC754 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#CAC754 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC754
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC754#FFFFFF#000000##000000
##CAC7541.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C047
Deuteranopia (green-blind)
#D8C45B
Tritanopia (blue-blind)
#D7BBAE
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cac754;
/* rgb */ color: rgb(202, 199, 84);
/* oklch */ color: oklch(81.0% 0.137 107.7);
Tailwind
colors: {
  custom: {
    50: '#ddd788',
    500: '#cac754',
    950: '#000000',
  },
}
SCSS
$custom: #cac754;
$custom-light: #ddd788;
$custom-dark: #000000;
JSON
{
  "hex": "#cac754",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 84
  },
  "hsl": {
    "h": 58.475,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80984,
    "c": 0.13662,
    "h": 107.7
  },
  "luminance": 0.54043
}

Semantic roles & 50–950 ramp

primary
#CAC754
secondary
#3D3F85
accent
#4FDC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC754

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

Preview Lab → · Contrast checker → · Palette generator →

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