#C7C142#C7C142

#C7C142 is a light, vivid yellow. Relative luminance 0.507; OKLCH L 79.3% C 0.145 H 106.6°. Best body text is #000000 at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#C7C142
RGBrgb(199, 193, 66)
HSLhsl(57, 54%, 52%)
HSVhsv(57, 67%, 78%)
CMYKcmyk(0%, 3%, 66.8%, 22%)
CIE-LABlab(76.48, -13.00, 61.89)
CIE-LCHlch(76.48, 63.24, 101.86°)
OKLaboklab(79.28% -0.0415 0.1389)
OKLCHoklch(79.28% 0.145 106.6)
XYZxyz(43.6081, 50.6769, 12.6377)
Luminance0.5068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C142 #4248C7
analogous
#C77F42 #C7C142 #8BC742
triadic
#C7C142 #42C7C1 #C142C7
tetradic
#C7C142 #42C77F #4248C7 #C7428B
square
#C7C142 #42C77F #4248C7 #C7428B
split-complementary
#C7C142 #428BC7 #7F42C7
monochromatic
#6E6B21 #9D982F #C7C142 #D5D071 #E3E0A0

Accessibility & contrast

On white

1.89
#C7C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.14
#C7C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C142
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C142#FFFFFF#000000##000000
##C7C1421.001.8911.1411.14
#FFFFFF1.891.0021.0021.00
#00000011.1421.001.001.00
##00000011.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D4BF4A
Tritanopia (blue-blind)
#D5B5A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c142;
/* rgb */ color: rgb(199, 193, 66);
/* oklch */ color: oklch(79.3% 0.145 106.6);
Tailwind
colors: {
  custom: {
    50: '#dbd37d',
    500: '#c7c142',
    950: '#000000',
  },
}
SCSS
$custom: #c7c142;
$custom-light: #dbd37d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c142",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 57.293,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.7928,
    "c": 0.145,
    "h": 106.6
  },
  "luminance": 0.50675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C7C142

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

Preview Lab → · Contrast checker → · Palette generator →

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