#C7D542#C7D542

#C7D542 is a very light, vivid yellow. Relative luminance 0.601; OKLCH L 83.6% C 0.166 H 114.7°. Best body text is #000000 at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#C7D542
RGBrgb(199, 213, 66)
HSLhsl(66, 64%, 55%)
HSVhsv(66, 69%, 84%)
CMYKcmyk(6.6%, 0%, 69%, 16.5%)
CIE-LABlab(81.91, -22.92, 67.35)
CIE-LCHlch(81.91, 71.14, 108.79°)
OKLaboklab(83.62% -0.0693 0.1504)
OKLCHoklch(83.62% 0.166 114.7)
XYZxyz(48.3321, 60.1248, 14.2124)
Luminance0.6012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D542 #5042D5
analogous
#D59942 #C7D542 #7ED542
triadic
#C7D542 #42C7D5 #D542C7
tetradic
#C7D542 #42D599 #5042D5 #D5427E
square
#C7D542 #42D599 #5042D5 #D5427E
split-complementary
#C7D542 #427ED5 #9942D5
monochromatic
#77801C #A5B228 #C7D542 #D6E074 #E5EBA6

Accessibility & contrast

On white

1.61
#C7D542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.02
#C7D542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D542
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D542#FFFFFF#000000##000000
##C7D5421.001.6113.0213.02
#FFFFFF1.611.0021.0021.00
#00000013.0221.001.001.00
##00000013.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB2A
Deuteranopia (green-blind)
#E3CD4D
Tritanopia (blue-blind)
#D4C9B8
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #c7d542;
/* rgb */ color: rgb(199, 213, 66);
/* oklch */ color: oklch(83.6% 0.166 114.7);
Tailwind
colors: {
  custom: {
    50: '#dbe17f',
    500: '#c7d542',
    950: '#000000',
  },
}
SCSS
$custom: #c7d542;
$custom-light: #dbe17f;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d542",
  "rgb": {
    "r": 199,
    "g": 213,
    "b": 66
  },
  "hsl": {
    "h": 65.714,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.83615,
    "c": 0.16563,
    "h": 114.7
  },
  "luminance": 0.60124
}

Semantic roles & 50–950 ramp

primary
#C7D542
secondary
#3C3487
accent
#41E751
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#15150B
muted
#84847E

Preview Lab

Preview with #C7D542

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

Preview Lab → · Contrast checker → · Palette generator →

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