#C7C162#C7C162

#C7C162 is a light, moderate yellow. Relative luminance 0.512; OKLCH L 79.6% C 0.118 H 105.5°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#C7C162
RGBrgb(199, 193, 98)
HSLhsl(56, 47%, 58%)
HSVhsv(56, 51%, 78%)
CMYKcmyk(0%, 3%, 50.8%, 22%)
CIE-LABlab(76.78, -10.71, 48.07)
CIE-LCHlch(76.78, 49.25, 102.56°)
OKLaboklab(79.61% -0.0315 0.1135)
OKLCHoklch(79.61% 0.118 105.5)
XYZxyz(44.8289, 51.1652, 19.0673)
Luminance0.5116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C162 #6268C7
analogous
#C78E62 #C7C162 #9AC762
triadic
#C7C162 #62C7C1 #C162C7
tetradic
#C7C162 #62C78E #6268C7 #C7629A
square
#C7C162 #62C78E #6268C7 #C7629A
split-complementary
#C7C162 #629AC7 #8E62C7
monochromatic
#817C2E #AEA73E #C7C162 #D7D38F #E7E5BC

Accessibility & contrast

On white

1.87
#C7C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#C7C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C162
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C162#FFFFFF#000000##000000
##C7C1621.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBB59
Deuteranopia (green-blind)
#D1C067
Tritanopia (blue-blind)
#D3B6AB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #c7c162;
/* rgb */ color: rgb(199, 193, 98);
/* oklch */ color: oklch(79.6% 0.118 105.5);
Tailwind
colors: {
  custom: {
    50: '#dad391',
    500: '#c7c162',
    950: '#000000',
  },
}
SCSS
$custom: #c7c162;
$custom-light: #dad391;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c162",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 56.436,
    "s": 47.418,
    "l": 58.235
  },
  "oklch": {
    "l": 0.79611,
    "c": 0.11779,
    "h": 105.5
  },
  "luminance": 0.51164
}

Semantic roles & 50–950 ramp

primary
#C7C162
secondary
#454989
accent
#59D751
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #C7C162

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

Preview Lab → · Contrast checker → · Palette generator →

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