#C7C166#C7C166

#C7C166 is a light, moderate yellow. Relative luminance 0.512; OKLCH L 79.7% C 0.114 H 105.3°. Best body text is #000000 at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#C7C166
RGBrgb(199, 193, 102)
HSLhsl(56, 46%, 59%)
HSVhsv(56, 49%, 78%)
CMYKcmyk(0%, 3%, 48.7%, 22%)
CIE-LABlab(76.83, -10.35, 46.19)
CIE-LCHlch(76.83, 47.34, 102.63°)
OKLaboklab(79.66% -0.0301 0.1097)
OKLCHoklch(79.66% 0.114 105.3)
XYZxyz(45.0225, 51.2426, 20.0870)
Luminance0.5124 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C166 #666CC7
analogous
#C79166 #C7C166 #9DC766
triadic
#C7C166 #66C7C1 #C166C7
tetradic
#C7C166 #66C791 #666CC7 #C7669D
square
#C7C166 #66C791 #666CC7 #C7669D
split-complementary
#C7C166 #669DC7 #9166C7
monochromatic
#837E30 #B0A940 #C7C166 #D7D393 #E8E5C0

Accessibility & contrast

On white

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

On black

11.25
#C7C166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C166
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C166#FFFFFF#000000##000000
##C7C1661.001.8711.2511.25
#FFFFFF1.871.0021.0021.00
#00000011.2521.001.001.00
##00000011.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFBB5E
Deuteranopia (green-blind)
#D1C06A
Tritanopia (blue-blind)
#D3B7AC
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c7c166;
/* rgb */ color: rgb(199, 193, 102);
/* oklch */ color: oklch(79.7% 0.114 105.3);
Tailwind
colors: {
  custom: {
    50: '#dad394',
    500: '#c7c166',
    950: '#000000',
  },
}
SCSS
$custom: #c7c166;
$custom-light: #dad394;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c166",
  "rgb": {
    "r": 199,
    "g": 193,
    "b": 102
  },
  "hsl": {
    "h": 56.289,
    "s": 46.411,
    "l": 59.02
  },
  "oklch": {
    "l": 0.79663,
    "c": 0.11379,
    "h": 105.3
  },
  "luminance": 0.51241
}

Semantic roles & 50–950 ramp

primary
#C7C166
secondary
#474B8B
accent
#5AD652
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #C7C166

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

Preview Lab → · Contrast checker → · Palette generator →

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