#C7D942#C7D942

#C7D942 is a very light, vivid yellow. Relative luminance 0.622; OKLCH L 84.5% C 0.170 H 116.1°. Best body text is #000000 at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#C7D942
RGBrgb(199, 217, 66)
HSLhsl(67, 67%, 55%)
HSVhsv(67, 70%, 85%)
CMYKcmyk(8.3%, 0%, 69.6%, 14.9%)
CIE-LABlab(83.00, -24.85, 68.43)
CIE-LCHlch(83.00, 72.81, 109.96°)
OKLaboklab(84.49% -0.0747 0.1527)
OKLCHoklch(84.49% 0.17 116.1)
XYZxyz(49.3506, 62.1619, 14.5519)
Luminance0.6216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D942 #5442D9
analogous
#D99F42 #C7D942 #7CD942
triadic
#C7D942 #42C7D9 #D942C7
tetradic
#C7D942 #42D99F #5442D9 #D9427C
square
#C7D942 #42D99F #5442D9 #D9427C
split-complementary
#C7D942 #427CD9 #9F42D9
monochromatic
#79861B #A7B925 #C7D942 #D6E375 #E5EDA8

Accessibility & contrast

On white

1.56
#C7D942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.43
#C7D942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D942
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D942#FFFFFF#000000##000000
##C7D9421.001.5613.4313.43
#FFFFFF1.561.0021.0021.00
#00000013.4321.001.001.00
##00000013.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE29
Deuteranopia (green-blind)
#E6D04E
Tritanopia (blue-blind)
#D3CDBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #c7d942;
/* rgb */ color: rgb(199, 217, 66);
/* oklch */ color: oklch(84.5% 0.170 116.1);
Tailwind
colors: {
  custom: {
    50: '#dbe480',
    500: '#c7d942',
    950: '#000000',
  },
}
SCSS
$custom: #c7d942;
$custom-light: #dbe480;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d942",
  "rgb": {
    "r": 199,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 67.152,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.84492,
    "c": 0.16999,
    "h": 116.1
  },
  "luminance": 0.62161
}

Semantic roles & 50–950 ramp

primary
#C7D942
secondary
#3E338C
accent
#3EE953
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C7D942

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

Preview Lab → · Contrast checker → · Palette generator →

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