#C7C042#C7C042

#C7C042 is a light, vivid yellow. Relative luminance 0.502; OKLCH L 79.1% C 0.144 H 106.2°. Best body text is #000000 at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#C7C042
RGBrgb(199, 192, 66)
HSLhsl(57, 54%, 52%)
HSVhsv(57, 67%, 78%)
CMYKcmyk(0%, 3.5%, 66.8%, 22%)
CIE-LABlab(76.21, -12.49, 61.62)
CIE-LCHlch(76.21, 62.87, 101.46°)
OKLaboklab(79.07% -0.0401 0.1384)
OKLCHoklch(79.07% 0.144 106.2)
XYZxyz(43.3878, 50.2362, 12.5643)
Luminance0.5023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C042 #4249C7
analogous
#C77E42 #C7C042 #8CC742
triadic
#C7C042 #42C7C0 #C042C7
tetradic
#C7C042 #42C77E #4249C7 #C7428C
square
#C7C042 #42C77E #4249C7 #C7428C
split-complementary
#C7C042 #428CC7 #7E42C7
monochromatic
#6E6A21 #9D972F #C7C042 #D5D071 #E3DFA0

Accessibility & contrast

On white

1.90
#C7C042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.05
#C7C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C042
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C042#FFFFFF#000000##000000
##C7C0421.001.9011.0511.05
#FFFFFF1.901.0021.0021.00
#00000011.0521.001.001.00
##00000011.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B930
Deuteranopia (green-blind)
#D3BE4A
Tritanopia (blue-blind)
#D5B4A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c7c042;
/* rgb */ color: rgb(199, 192, 66);
/* oklch */ color: oklch(79.1% 0.144 106.2);
Tailwind
colors: {
  custom: {
    50: '#dbd27d',
    500: '#c7c042',
    950: '#000000',
  },
}
SCSS
$custom: #c7c042;
$custom-light: #dbd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c042",
  "rgb": {
    "r": 199,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 56.842,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79065,
    "c": 0.14404,
    "h": 106.2
  },
  "luminance": 0.50235
}

Semantic roles & 50–950 ramp

primary
#C7C042
secondary
#363978
accent
#52DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C042

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

Preview Lab → · Contrast checker → · Palette generator →

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