#C7C742#C7C742

#C7C742 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.6% C 0.151 H 109.4°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#C7C742
RGBrgb(199, 199, 66)
HSLhsl(60, 54%, 52%)
HSVhsv(60, 67%, 78%)
CMYKcmyk(0%, 0%, 66.8%, 22%)
CIE-LABlab(78.10, -16.02, 63.54)
CIE-LCHlch(78.10, 65.53, 104.15°)
OKLaboklab(80.57% -0.05 0.1424)
OKLCHoklch(80.57% 0.151 109.4)
XYZxyz(44.9615, 53.3836, 13.0888)
Luminance0.5338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C742 #4242C7
analogous
#C78542 #C7C742 #85C742
triadic
#C7C742 #42C7C7 #C742C7
tetradic
#C7C742 #42C785 #4242C7 #C74285
square
#C7C742 #42C785 #4242C7 #C74285
split-complementary
#C7C742 #4285C7 #8542C7
monochromatic
#6E6E21 #9D9D2F #C7C742 #D5D571 #E3E3A0

Accessibility & contrast

On white

1.80
#C7C742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.68
#C7C742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C742
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C742#FFFFFF#000000##000000
##C7C7421.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#D8C34B
Tritanopia (blue-blind)
#D5BBAC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #c7c742;
/* rgb */ color: rgb(199, 199, 66);
/* oklch */ color: oklch(80.6% 0.151 109.4);
Tailwind
colors: {
  custom: {
    50: '#dbd77e',
    500: '#c7c742',
    950: '#000000',
  },
}
SCSS
$custom: #c7c742;
$custom-light: #dbd77e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c742",
  "rgb": {
    "r": 199,
    "g": 199,
    "b": 66
  },
  "hsl": {
    "h": 60,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.8057,
    "c": 0.15092,
    "h": 109.4
  },
  "luminance": 0.53382
}

Semantic roles & 50–950 ramp

primary
#C7C742
secondary
#363678
accent
#4ADE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C742

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

Preview Lab → · Contrast checker → · Palette generator →

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