#C7C542#C7C542

#C7C542 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.1% C 0.149 H 108.5°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#C7C542
RGBrgb(199, 197, 66)
HSLhsl(59, 54%, 52%)
HSVhsv(59, 67%, 78%)
CMYKcmyk(0%, 1%, 66.8%, 22%)
CIE-LABlab(77.56, -15.02, 62.99)
CIE-LCHlch(77.56, 64.75, 103.41°)
OKLaboklab(80.14% -0.0472 0.1412)
OKLCHoklch(80.14% 0.149 108.5)
XYZxyz(44.5044, 52.4693, 12.9365)
Luminance0.5247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C542 #4244C7
analogous
#C78342 #C7C542 #86C742
triadic
#C7C542 #42C7C5 #C542C7
tetradic
#C7C542 #42C783 #4244C7 #C74286
square
#C7C542 #42C783 #4244C7 #C74286
split-complementary
#C7C542 #4286C7 #8342C7
monochromatic
#6E6D21 #9D9C2F #C7C542 #D5D371 #E3E2A0

Accessibility & contrast

On white

1.83
#C7C542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#C7C542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C542
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C542#FFFFFF#000000##000000
##C7C5421.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2F
Deuteranopia (green-blind)
#D7C24B
Tritanopia (blue-blind)
#D5B9AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #c7c542;
/* rgb */ color: rgb(199, 197, 66);
/* oklch */ color: oklch(80.1% 0.149 108.5);
Tailwind
colors: {
  custom: {
    50: '#dbd67e',
    500: '#c7c542',
    950: '#000000',
  },
}
SCSS
$custom: #c7c542;
$custom-light: #dbd67e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c542",
  "rgb": {
    "r": 199,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 59.098,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.80139,
    "c": 0.14892,
    "h": 108.5
  },
  "luminance": 0.52468
}

Semantic roles & 50–950 ramp

primary
#C7C542
secondary
#363778
accent
#4CDE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C542

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

Preview Lab → · Contrast checker → · Palette generator →

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