#C8D172#C8D172

#C8D172 is a very light, moderate yellow. Relative luminance 0.591; OKLCH L 83.3% C 0.120 H 113.4°. Best body text is #000000 at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#C8D172
RGBrgb(200, 209, 114)
HSLhsl(66, 51%, 63%)
HSVhsv(66, 45%, 82%)
CMYKcmyk(4.3%, 0%, 45.5%, 18%)
CIE-LABlab(81.34, -16.88, 45.85)
CIE-LCHlch(81.34, 48.86, 110.22°)
OKLaboklab(83.33% -0.0476 0.1099)
OKLCHoklch(83.33% 0.12 113.4)
XYZxyz(49.6578, 59.0959, 24.7070)
Luminance0.5909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8D172 #7B72D1
analogous
#D1AA72 #C8D172 #98D172
triadic
#C8D172 #72C8D1 #D172C8
tetradic
#C8D172 #72D1AA #7B72D1 #D17298
square
#C8D172 #72D1AA #7B72D1 #D17298
split-complementary
#C8D172 #7298D1 #AA72D1
monochromatic
#8E9731 #B6C244 #C8D172 #DAE0A0 #ECEFCE

Accessibility & contrast

On white

1.64
#C8D172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.82
#C8D172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8D172
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8D172#FFFFFF#000000##000000
##C8D1721.001.6412.8212.82
#FFFFFF1.641.0021.0021.00
#00000012.8221.001.001.00
##00000012.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC96A
Deuteranopia (green-blind)
#DDCB77
Tritanopia (blue-blind)
#D2C7BB
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #c8d172;
/* rgb */ color: rgb(200, 209, 114);
/* oklch */ color: oklch(83.3% 0.120 113.4);
Tailwind
colors: {
  custom: {
    50: '#dadf9c',
    500: '#c8d172',
    950: '#000000',
  },
}
SCSS
$custom: #c8d172;
$custom-light: #dadf9c;
$custom-dark: #000000;
JSON
{
  "hex": "#c8d172",
  "rgb": {
    "r": 200,
    "g": 209,
    "b": 114
  },
  "hsl": {
    "h": 65.684,
    "s": 50.802,
    "l": 63.333
  },
  "oklch": {
    "l": 0.83328,
    "c": 0.11977,
    "h": 113.4
  },
  "luminance": 0.59095
}

Semantic roles & 50–950 ramp

primary
#C8D172
secondary
#524A9D
accent
#27BE36
background
#FEFEFC
surface
#FCFCF5
border
#D5D5CF
text
#15150E
muted
#84847F

Preview Lab

Preview with #C8D172

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

Preview Lab → · Contrast checker → · Palette generator →

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