#C7C22E#C7C22E

#C7C22E 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#C7C22E
RGBrgb(199, 194, 46)
HSLhsl(58, 62%, 48%)
HSVhsv(58, 77%, 78%)
CMYKcmyk(0%, 2.5%, 76.9%, 22%)
CIE-LABlab(76.63, -14.44, 69.09)
CIE-LCHlch(76.63, 70.58, 101.80°)
OKLaboklab(79.36% -0.0474 0.1506)
OKLCHoklch(79.36% 0.158 107.5)
XYZxyz(43.3399, 50.9245, 10.1307)
Luminance0.5092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C22E #2E33C7
analogous
#C7752E #C7C22E #7FC72E
triadic
#C7C22E #2EC7C2 #C22EC7
tetradic
#C7C22E #2EC775 #2E33C7 #C72E7F
square
#C7C22E #2EC775 #2E33C7 #C72E7F
split-complementary
#C7C22E #2E7FC7 #752EC7
monochromatic
#646117 #959223 #C7C22E #D9D559 #E4E18B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C7C22E#FFFFFF#000000##000000
##C7C22E1.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)
#D3BA02
Deuteranopia (green-blind)
#D5C03A
Tritanopia (blue-blind)
#D6B5A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c22e;
/* rgb */ color: rgb(199, 194, 46);
/* oklch */ color: oklch(79.4% 0.158 107.5);
Tailwind
colors: {
  custom: {
    50: '#dcd473',
    500: '#c7c22e',
    950: '#000000',
  },
}
SCSS
$custom: #c7c22e;
$custom-light: #dcd473;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c22e",
  "rgb": {
    "r": 199,
    "g": 194,
    "b": 46
  },
  "hsl": {
    "h": 58.039,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.79362,
    "c": 0.15791,
    "h": 107.5
  },
  "luminance": 0.50923
}

Semantic roles & 50–950 ramp

primary
#C7C22E
secondary
#2B2D6E
accent
#48E642
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #C7C22E

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

Preview Lab → · Contrast checker → · Palette generator →

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