#C7D842#C7D842

#C7D842 is a very light, vivid yellow. Relative luminance 0.616; OKLCH L 84.3% C 0.169 H 115.7°. Best body text is #000000 at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#C7D842
RGBrgb(199, 216, 66)
HSLhsl(67, 66%, 55%)
HSVhsv(67, 69%, 85%)
CMYKcmyk(7.9%, 0%, 69.4%, 15.3%)
CIE-LABlab(82.73, -24.37, 68.16)
CIE-LCHlch(82.73, 72.39, 109.67°)
OKLaboklab(84.27% -0.0734 0.1521)
OKLCHoklch(84.27% 0.169 115.7)
XYZxyz(49.0937, 61.6479, 14.4662)
Luminance0.6165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D842 #5342D8
analogous
#D89E42 #C7D842 #7CD842
triadic
#C7D842 #42C7D8 #D842C7
tetradic
#C7D842 #42D89E #5342D8 #D8427C
square
#C7D842 #42D89E #5342D8 #D8427C
split-complementary
#C7D842 #427CD8 #9E42D8
monochromatic
#78841B #A7B726 #C7D842 #D6E275 #E5EDA7

Accessibility & contrast

On white

1.58
#C7D842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.33
#C7D842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D842
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D842#FFFFFF#000000##000000
##C7D8421.001.5813.3313.33
#FFFFFF1.581.0021.0021.00
#00000013.3321.001.001.00
##00000013.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD29
Deuteranopia (green-blind)
#E6CF4E
Tritanopia (blue-blind)
#D3CCBB
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #c7d842;
/* rgb */ color: rgb(199, 216, 66);
/* oklch */ color: oklch(84.3% 0.169 115.7);
Tailwind
colors: {
  custom: {
    50: '#dbe37f',
    500: '#c7d842',
    950: '#000000',
  },
}
SCSS
$custom: #c7d842;
$custom-light: #dbe37f;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d842",
  "rgb": {
    "r": 199,
    "g": 216,
    "b": 66
  },
  "hsl": {
    "h": 66.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.84272,
    "c": 0.16889,
    "h": 115.7
  },
  "luminance": 0.61647
}

Semantic roles & 50–950 ramp

primary
#C7D842
secondary
#3D338B
accent
#3FE952
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C7D842

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

Preview Lab → · Contrast checker → · Palette generator →

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