#C7D940#C7D940

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

Color values

HEX#C7D940
RGBrgb(199, 217, 64)
HSLhsl(67, 67%, 55%)
HSVhsv(67, 71%, 85%)
CMYKcmyk(8.3%, 0%, 70.5%, 14.9%)
CIE-LABlab(82.99, -24.95, 69.13)
CIE-LCHlch(82.99, 73.50, 109.85°)
OKLaboklab(84.48% -0.0752 0.1538)
OKLCHoklch(84.48% 0.171 116)
XYZxyz(49.2927, 62.1387, 14.2468)
Luminance0.6214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D940 #5240D9
analogous
#D99F40 #C7D940 #7AD940
triadic
#C7D940 #40C7D9 #D940C7
tetradic
#C7D940 #40D99F #5240D9 #D9407A
square
#C7D940 #40D99F #5240D9 #D9407A
split-complementary
#C7D940 #407AD9 #9F40D9
monochromatic
#78841A #A6B724 #C7D940 #D6E373 #E5EDA6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C7D940#FFFFFF#000000##000000
##C7D9401.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)
#E8CE25
Deuteranopia (green-blind)
#E7D04C
Tritanopia (blue-blind)
#D3CDBB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #c7d940;
/* rgb */ color: rgb(199, 217, 64);
/* oklch */ color: oklch(84.5% 0.171 116.0);
Tailwind
colors: {
  custom: {
    50: '#dbe47f',
    500: '#c7d940',
    950: '#000000',
  },
}
SCSS
$custom: #c7d940;
$custom-light: #dbe47f;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d940",
  "rgb": {
    "r": 199,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 67.059,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84478,
    "c": 0.17123,
    "h": 116
  },
  "luminance": 0.62138
}

Semantic roles & 50–950 ramp

primary
#C7D940
secondary
#3D328B
accent
#3EEA52
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C7D940

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

Preview Lab → · Contrast checker → · Palette generator →

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