#C7D742#C7D742

#C7D742 is a very light, vivid yellow. Relative luminance 0.611; OKLCH L 84.1% C 0.168 H 115.4°. Best body text is #000000 at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#C7D742
RGBrgb(199, 215, 66)
HSLhsl(66, 65%, 55%)
HSVhsv(66, 69%, 84%)
CMYKcmyk(7.4%, 0%, 69.3%, 15.7%)
CIE-LABlab(82.45, -23.89, 67.89)
CIE-LCHlch(82.45, 71.97, 109.38°)
OKLaboklab(84.05% -0.072 0.1516)
OKLCHoklch(84.05% 0.168 115.4)
XYZxyz(48.8383, 61.1371, 14.3811)
Luminance0.6114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D742 #5242D7
analogous
#D79D42 #C7D742 #7CD742
triadic
#C7D742 #42C7D7 #D742C7
tetradic
#C7D742 #42D79D #5242D7 #D7427C
square
#C7D742 #42D79D #5242D7 #D7427C
split-complementary
#C7D742 #427CD7 #9D42D7
monochromatic
#78831C #A6B526 #C7D742 #D6E275 #E5ECA7

Accessibility & contrast

On white

1.59
#C7D742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.23
#C7D742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D742
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D742#FFFFFF#000000##000000
##C7D7421.001.5913.2313.23
#FFFFFF1.591.0021.0021.00
#00000013.2321.001.001.00
##00000013.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC29
Deuteranopia (green-blind)
#E5CE4E
Tritanopia (blue-blind)
#D4CBBA
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #c7d742;
/* rgb */ color: rgb(199, 215, 66);
/* oklch */ color: oklch(84.1% 0.168 115.4);
Tailwind
colors: {
  custom: {
    50: '#dbe37f',
    500: '#c7d742',
    950: '#000000',
  },
}
SCSS
$custom: #c7d742;
$custom-light: #dbe37f;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d742",
  "rgb": {
    "r": 199,
    "g": 215,
    "b": 66
  },
  "hsl": {
    "h": 66.443,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84053,
    "c": 0.1678,
    "h": 115.4
  },
  "luminance": 0.61136
}

Semantic roles & 50–950 ramp

primary
#C7D742
secondary
#3D348A
accent
#40E852
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C7D742

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

Preview Lab → · Contrast checker → · Palette generator →

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