#C7C342#C7C342

#C7C342 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.7% C 0.147 H 107.6°. Best body text is #000000 at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#C7C342
RGBrgb(199, 195, 66)
HSLhsl(58, 54%, 52%)
HSVhsv(58, 67%, 78%)
CMYKcmyk(0%, 2%, 66.8%, 22%)
CIE-LABlab(77.02, -14.01, 62.44)
CIE-LCHlch(77.02, 63.99, 102.64°)
OKLaboklab(79.71% -0.0444 0.1401)
OKLCHoklch(79.71% 0.147 107.6)
XYZxyz(44.0532, 51.5671, 12.7861)
Luminance0.5157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C342 #4246C7
analogous
#C78042 #C7C342 #89C742
triadic
#C7C342 #42C7C3 #C342C7
tetradic
#C7C342 #42C780 #4246C7 #C74289
square
#C7C342 #42C780 #4246C7 #C74289
split-complementary
#C7C342 #4289C7 #8042C7
monochromatic
#6E6C21 #9D9A2F #C7C342 #D5D271 #E3E1A0

Accessibility & contrast

On white

1.86
#C7C342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.31
#C7C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C342
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C342#FFFFFF#000000##000000
##C7C3421.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2F
Deuteranopia (green-blind)
#D5C04B
Tritanopia (blue-blind)
#D5B7A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c7c342;
/* rgb */ color: rgb(199, 195, 66);
/* oklch */ color: oklch(79.7% 0.147 107.6);
Tailwind
colors: {
  custom: {
    50: '#dbd47e',
    500: '#c7c342',
    950: '#000000',
  },
}
SCSS
$custom: #c7c342;
$custom-light: #dbd47e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c342",
  "rgb": {
    "r": 199,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 58.195,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79709,
    "c": 0.14694,
    "h": 107.6
  },
  "luminance": 0.51566
}

Semantic roles & 50–950 ramp

primary
#C7C342
secondary
#363878
accent
#4FDE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C342

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

Preview Lab → · Contrast checker → · Palette generator →

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