#CAC751#CAC751

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

Color values

HEX#CAC751
RGBrgb(202, 199, 81)
HSLhsl(59, 53%, 55%)
HSVhsv(59, 60%, 79%)
CMYKcmyk(0%, 1.5%, 59.9%, 20.8%)
CIE-LABlab(78.46, -13.84, 57.84)
CIE-LCHlch(78.46, 59.47, 103.46°)
OKLaboklab(80.95% -0.0425 0.1325)
OKLCHoklch(80.95% 0.139 107.8)
XYZxyz(46.2672, 53.9989, 15.7686)
Luminance0.5400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CAC751 #5154CA
analogous
#CA8A51 #CAC751 #91CA51
triadic
#CAC751 #51CAC7 #C751CA
tetradic
#CAC751 #51CA8A #5154CA #CA5191
square
#CAC751 #51CA8A #5154CA #CA5191
split-complementary
#CAC751 #5191CA #8A51CA
monochromatic
#7B7925 #AAA734 #CAC751 #D8D680 #E7E5AF

Accessibility & contrast

On white

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

On black

11.80
#CAC751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CAC751
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CAC751#FFFFFF#000000##000000
##CAC7511.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cac751;
/* rgb */ color: rgb(202, 199, 81);
/* oklch */ color: oklch(81.0% 0.139 107.8);
Tailwind
colors: {
  custom: {
    50: '#ddd787',
    500: '#cac751',
    950: '#000000',
  },
}
SCSS
$custom: #cac751;
$custom-light: #ddd787;
$custom-dark: #000000;
JSON
{
  "hex": "#cac751",
  "rgb": {
    "r": 202,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 58.512,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.80954,
    "c": 0.13914,
    "h": 107.8
  },
  "luminance": 0.53997
}

Semantic roles & 50–950 ramp

primary
#CAC751
secondary
#3C3E83
accent
#4FDD4B
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CAC751

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

Preview Lab → · Contrast checker → · Palette generator →

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