#C7D162#C7D162

#C7D162 is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 83.0% C 0.136 H 113.6°. Best body text is #000000 at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#C7D162
RGBrgb(199, 209, 98)
HSLhsl(65, 55%, 60%)
HSVhsv(65, 53%, 82%)
CMYKcmyk(4.8%, 0%, 53.1%, 18%)
CIE-LABlab(81.09, -18.76, 53.11)
CIE-LCHlch(81.09, 56.33, 109.45°)
OKLaboklab(83.04% -0.0544 0.1244)
OKLCHoklch(83.04% 0.136 113.6)
XYZxyz(48.5592, 58.6257, 20.3107)
Luminance0.5863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7D162 #6C62D1
analogous
#D1A362 #C7D162 #90D162
triadic
#C7D162 #62C7D1 #D162C7
tetradic
#C7D162 #62D1A3 #6C62D1 #D16290
square
#C7D162 #62D1A3 #6C62D1 #D16290
split-complementary
#C7D162 #6290D1 #A362D1
monochromatic
#868F2A #B2BE38 #C7D162 #D8DF91 #E9EDC1

Accessibility & contrast

On white

1.65
#C7D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.73
#C7D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7D162
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7D162#FFFFFF#000000##000000
##C7D1621.001.6512.7312.73
#FFFFFF1.651.0021.0021.00
#00000012.7321.001.001.00
##00000012.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC857
Deuteranopia (green-blind)
#DECB68
Tritanopia (blue-blind)
#D2C6B8
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #c7d162;
/* rgb */ color: rgb(199, 209, 98);
/* oklch */ color: oklch(83.0% 0.136 113.6);
Tailwind
colors: {
  custom: {
    50: '#dadf92',
    500: '#c7d162',
    950: '#000000',
  },
}
SCSS
$custom: #c7d162;
$custom-light: #dadf92;
$custom-dark: #000000;
JSON
{
  "hex": "#c7d162",
  "rgb": {
    "r": 199,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 65.405,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.83044,
    "c": 0.13583,
    "h": 113.6
  },
  "luminance": 0.58625
}

Semantic roles & 50–950 ramp

primary
#C7D162
secondary
#4A4295
accent
#23C232
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150D
muted
#84847F

Preview Lab

Preview with #C7D162

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

Preview Lab → · Contrast checker → · Palette generator →

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