#C8C162#C8C162

#C8C162 is a light, moderate yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.118 H 105.0°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#C8C162
RGBrgb(200, 193, 98)
HSLhsl(56, 48%, 58%)
HSVhsv(56, 51%, 78%)
CMYKcmyk(0%, 3.5%, 51%, 21.6%)
CIE-LABlab(76.86, -10.29, 48.19)
CIE-LCHlch(76.86, 49.28, 102.06°)
OKLaboklab(79.7% -0.0304 0.1137)
OKLCHoklch(79.7% 0.118 105)
XYZxyz(45.0952, 51.3025, 19.0798)
Luminance0.5130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C162 #6269C8
analogous
#C88E62 #C8C162 #9CC862
triadic
#C8C162 #62C8C1 #C162C8
tetradic
#C8C162 #62C88E #6269C8 #C8629C
square
#C8C162 #62C88E #6269C8 #C8629C
split-complementary
#C8C162 #629CC8 #8E62C8
monochromatic
#827C2E #AFA83D #C8C162 #D8D38F #E8E5BD

Accessibility & contrast

On white

1.86
#C8C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#C8C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8C162
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8C162#FFFFFF#000000##000000
##C8C1621.001.8611.2611.26
#FFFFFF1.861.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBB59
Deuteranopia (green-blind)
#D2C067
Tritanopia (blue-blind)
#D5B6AB
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c8c162;
/* rgb */ color: rgb(200, 193, 98);
/* oklch */ color: oklch(79.7% 0.118 105.0);
Tailwind
colors: {
  custom: {
    50: '#dbd391',
    500: '#c8c162',
    950: '#000000',
  },
}
SCSS
$custom: #c8c162;
$custom-light: #dbd391;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c162",
  "rgb": {
    "r": 200,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 55.882,
    "s": 48.113,
    "l": 58.431
  },
  "oklch": {
    "l": 0.79697,
    "c": 0.11773,
    "h": 105
  },
  "luminance": 0.51301
}

Semantic roles & 50–950 ramp

primary
#C8C162
secondary
#44498A
accent
#59D850
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #C8C162

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

Preview Lab → · Contrast checker → · Palette generator →

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