#C7C22D#C7C22D

#C7C22D is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.4% C 0.158 H 107.5°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#C7C22D
RGBrgb(199, 194, 45)
HSLhsl(58, 63%, 48%)
HSVhsv(58, 77%, 78%)
CMYKcmyk(0%, 2.5%, 77.4%, 22%)
CIE-LABlab(76.63, -14.47, 69.38)
CIE-LCHlch(76.63, 70.88, 101.78°)
OKLaboklab(79.36% -0.0476 0.1511)
OKLCHoklch(79.36% 0.158 107.5)
XYZxyz(43.3204, 50.9167, 10.0281)
Luminance0.5091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C22D #2D32C7
analogous
#C7752D #C7C22D #7FC72D
triadic
#C7C22D #2DC7C2 #C22DC7
tetradic
#C7C22D #2DC775 #2D32C7 #C72D7F
square
#C7C22D #2DC775 #2D32C7 #C72D7F
split-complementary
#C7C22D #2D7FC7 #752DC7
monochromatic
#636116 #959122 #C7C22D #D9D558 #E5E28A

Accessibility & contrast

On white

1.88
#C7C22D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#C7C22D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C22D
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C22D#FFFFFF#000000##000000
##C7C22D1.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA00
Deuteranopia (green-blind)
#D5BF3A
Tritanopia (blue-blind)
#D6B5A6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c22d;
/* rgb */ color: rgb(199, 194, 45);
/* oklch */ color: oklch(79.4% 0.158 107.5);
Tailwind
colors: {
  custom: {
    50: '#dcd473',
    500: '#c7c22d',
    950: '#000000',
  },
}
SCSS
$custom: #c7c22d;
$custom-light: #dcd473;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c22d",
  "rgb": {
    "r": 199,
    "g": 194,
    "b": 45
  },
  "hsl": {
    "h": 58.052,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.79356,
    "c": 0.1584,
    "h": 107.5
  },
  "luminance": 0.50915
}

Semantic roles & 50–950 ramp

primary
#C7C22D
secondary
#2A2D6E
accent
#47E642
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C7C22D

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

Preview Lab → · Contrast checker → · Palette generator →

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