#C8C040#C8C040

#C8C040 is a light, vivid yellow. Relative luminance 0.503; OKLCH L 79.1% C 0.145 H 105.8°. Best body text is #000000 at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#C8C040
RGBrgb(200, 192, 64)
HSLhsl(56, 55%, 52%)
HSVhsv(56, 68%, 78%)
CMYKcmyk(0%, 4%, 68%, 21.6%)
CIE-LABlab(76.28, -12.17, 62.50)
CIE-LCHlch(76.28, 63.68, 101.02°)
OKLaboklab(79.14% -0.0394 0.1399)
OKLCHoklch(79.14% 0.145 105.8)
XYZxyz(43.5961, 50.3504, 12.2716)
Luminance0.5035 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C040 #4048C8
analogous
#C87C40 #C8C040 #8CC840
triadic
#C8C040 #40C8C0 #C040C8
tetradic
#C8C040 #40C87C #4048C8 #C8408C
square
#C8C040 #40C87C #4048C8 #C8408C
split-complementary
#C8C040 #408CC8 #7C40C8
monochromatic
#6E6920 #9D972D #C8C040 #D6D070 #E3DF9F

Accessibility & contrast

On white

1.90
#C8C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.07
#C8C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8C040
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8C040#FFFFFF#000000##000000
##C8C0401.001.9011.0711.07
#FFFFFF1.901.0021.0021.00
#00000011.0721.001.001.00
##00000011.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B92D
Deuteranopia (green-blind)
#D3BF48
Tritanopia (blue-blind)
#D6B3A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c8c040;
/* rgb */ color: rgb(200, 192, 64);
/* oklch */ color: oklch(79.1% 0.145 105.8);
Tailwind
colors: {
  custom: {
    50: '#dcd27c',
    500: '#c8c040',
    950: '#000000',
  },
}
SCSS
$custom: #c8c040;
$custom-light: #dcd27c;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c040",
  "rgb": {
    "r": 200,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 56.471,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79137,
    "c": 0.14531,
    "h": 105.8
  },
  "luminance": 0.50349
}

Semantic roles & 50–950 ramp

primary
#C8C040
secondary
#353977
accent
#52DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C8C040

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

Preview Lab → · Contrast checker → · Palette generator →

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