#C7C040#C7C040

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

Color values

HEX#C7C040
RGBrgb(199, 192, 64)
HSLhsl(57, 55%, 52%)
HSVhsv(57, 68%, 78%)
CMYKcmyk(0%, 3.5%, 67.8%, 22%)
CIE-LABlab(76.20, -12.60, 62.39)
CIE-LCHlch(76.20, 63.65, 101.42°)
OKLaboklab(79.05% -0.0406 0.1396)
OKLCHoklch(79.05% 0.145 106.2)
XYZxyz(43.3299, 50.2131, 12.2592)
Luminance0.5021 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C040 #4047C7
analogous
#C77D40 #C7C040 #8BC740
triadic
#C7C040 #40C7C0 #C040C7
tetradic
#C7C040 #40C77D #4047C7 #C7408B
square
#C7C040 #40C77D #4047C7 #C7408B
split-complementary
#C7C040 #408BC7 #7D40C7
monochromatic
#6D6920 #9C962E #C7C040 #D5D06F #E3DF9F

Accessibility & contrast

On white

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

On black

11.04
#C7C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C040
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C040#FFFFFF#000000##000000
##C7C0401.001.9011.0411.04
#FFFFFF1.901.0021.0021.00
#00000011.0421.001.001.00
##00000011.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D3BE48
Tritanopia (blue-blind)
#D5B3A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c7c040;
/* rgb */ color: rgb(199, 192, 64);
/* oklch */ color: oklch(79.0% 0.145 106.2);
Tailwind
colors: {
  custom: {
    50: '#dbd27c',
    500: '#c7c040',
    950: '#000000',
  },
}
SCSS
$custom: #c7c040;
$custom-light: #dbd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c040",
  "rgb": {
    "r": 199,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 56.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.7905,
    "c": 0.14542,
    "h": 106.2
  },
  "luminance": 0.50212
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C7C040

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

Preview Lab → · Contrast checker → · Palette generator →

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