#C7D042#C7D042

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

Color values

HEX#C7D042
RGBrgb(199, 208, 66)
HSLhsl(64, 60%, 54%)
HSVhsv(64, 68%, 82%)
CMYKcmyk(4.3%, 0%, 68.3%, 18.4%)
CIE-LABlab(80.54, -20.48, 65.99)
CIE-LCHlch(80.54, 69.10, 107.24°)
OKLaboklab(82.52% -0.0625 0.1476)
OKLCHoklch(82.52% 0.16 113)
XYZxyz(47.0938, 57.6482, 13.7996)
Luminance0.5765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D042 #4B42D0
analogous
#D09242 #C7D042 #80D042
triadic
#C7D042 #42C7D0 #D042C7
tetradic
#C7D042 #42D092 #4B42D0 #D04280
square
#C7D042 #42D092 #4B42D0 #D04280
split-complementary
#C7D042 #4280D0 #9242D0
monochromatic
#74791E #A2AA2A #C7D042 #D6DC73 #E4E8A4

Accessibility & contrast

On white

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

On black

12.53
#C7D042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D042
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D042#FFFFFF#000000##000000
##C7D0421.001.6812.5312.53
#FFFFFF1.681.0021.0021.00
#00000012.5321.001.001.00
##00000012.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c7d042;
/* rgb */ color: rgb(199, 208, 66);
/* oklch */ color: oklch(82.5% 0.160 113.0);
Tailwind
colors: {
  custom: {
    50: '#dbde7f',
    500: '#c7d042',
    950: '#000000',
  },
}
SCSS
$custom: #c7d042;
$custom-light: #dbde7f;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d042",
  "rgb": {
    "r": 199,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 63.803,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.82523,
    "c": 0.16026,
    "h": 113
  },
  "luminance": 0.57647
}

Semantic roles & 50–950 ramp

primary
#C7D042
secondary
#3A3581
accent
#44E34F
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C7D042

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

Preview Lab → · Contrast checker → · Palette generator →

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