#C7C540#C7C540

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

Color values

HEX#C7C540
RGBrgb(199, 197, 64)
HSLhsl(59, 55%, 52%)
HSVhsv(59, 68%, 78%)
CMYKcmyk(0%, 1%, 67.8%, 22%)
CIE-LABlab(77.55, -15.13, 63.75)
CIE-LCHlch(77.55, 65.52, 103.35°)
OKLaboklab(80.12% -0.0477 0.1425)
OKLCHoklch(80.12% 0.15 108.5)
XYZxyz(44.4464, 52.4462, 12.6313)
Luminance0.5244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C540 #4042C7
analogous
#C78240 #C7C540 #86C740
triadic
#C7C540 #40C7C5 #C540C7
tetradic
#C7C540 #40C782 #4042C7 #C74086
square
#C7C540 #40C782 #4042C7 #C74086
split-complementary
#C7C540 #4086C7 #8240C7
monochromatic
#6D6C20 #9C9A2E #C7C540 #D5D36F #E3E29F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C7C540#FFFFFF#000000##000000
##C7C5401.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)
#D5BD2C
Deuteranopia (green-blind)
#D7C249
Tritanopia (blue-blind)
#D5B9AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #c7c540;
/* rgb */ color: rgb(199, 197, 64);
/* oklch */ color: oklch(80.1% 0.150 108.5);
Tailwind
colors: {
  custom: {
    50: '#dbd67d',
    500: '#c7c540',
    950: '#000000',
  },
}
SCSS
$custom: #c7c540;
$custom-light: #dbd67d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c540",
  "rgb": {
    "r": 199,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 59.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.80124,
    "c": 0.15027,
    "h": 108.5
  },
  "luminance": 0.52445
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C7C540

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

Preview Lab → · Contrast checker → · Palette generator →

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