#C7D040#C7D040

#C7D040 is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 82.5% C 0.162 H 113.0°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#C7D040
RGBrgb(199, 208, 64)
HSLhsl(64, 61%, 53%)
HSVhsv(64, 69%, 82%)
CMYKcmyk(4.3%, 0%, 69.2%, 18.4%)
CIE-LABlab(80.53, -20.59, 66.72)
CIE-LCHlch(80.53, 69.82, 107.15°)
OKLaboklab(82.51% -0.063 0.1488)
OKLCHoklch(82.51% 0.162 113)
XYZxyz(47.0359, 57.6251, 13.4945)
Luminance0.5762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D040 #4940D0
analogous
#D09140 #C7D040 #7FD040
triadic
#C7D040 #40C7D0 #D040C7
tetradic
#C7D040 #40D091 #4940D0 #D0407F
square
#C7D040 #40D091 #4940D0 #D0407F
split-complementary
#C7D040 #407FD0 #9140D0
monochromatic
#72781E #A1A92A #C7D040 #D5DC71 #E4E8A2

Accessibility & contrast

On white

1.68
#C7D040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.52
#C7D040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D040
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D040#FFFFFF#000000##000000
##C7D0401.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC628
Deuteranopia (green-blind)
#DFC94B
Tritanopia (blue-blind)
#D4C4B4
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #c7d040;
/* rgb */ color: rgb(199, 208, 64);
/* oklch */ color: oklch(82.5% 0.162 113.0);
Tailwind
colors: {
  custom: {
    50: '#dbde7e',
    500: '#c7d040',
    950: '#000000',
  },
}
SCSS
$custom: #c7d040;
$custom-light: #dbde7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d040",
  "rgb": {
    "r": 199,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 63.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.82508,
    "c": 0.16155,
    "h": 113
  },
  "luminance": 0.57624
}

Semantic roles & 50–950 ramp

primary
#C7D040
secondary
#393480
accent
#44E44E
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150A
muted
#84847D

Preview Lab

Preview with #C7D040

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

Preview Lab → · Contrast checker → · Palette generator →

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