#C8C042#C8C042

#C8C042 is a light, vivid yellow. Relative luminance 0.504; OKLCH L 79.2% C 0.144 H 105.7°. Best body text is #000000 at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#C8C042
RGBrgb(200, 192, 66)
HSLhsl(56, 55%, 52%)
HSVhsv(56, 67%, 78%)
CMYKcmyk(0%, 4%, 67%, 21.6%)
CIE-LABlab(76.30, -12.06, 61.73)
CIE-LCHlch(76.30, 62.90, 101.06°)
OKLaboklab(79.15% -0.0389 0.1386)
OKLCHoklch(79.15% 0.144 105.7)
XYZxyz(43.6541, 50.3735, 12.5768)
Luminance0.5037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C042 #424AC8
analogous
#C87D42 #C8C042 #8DC842
triadic
#C8C042 #42C8C0 #C042C8
tetradic
#C8C042 #42C87D #424AC8 #C8428D
square
#C8C042 #42C87D #424AC8 #C8428D
split-complementary
#C8C042 #428DC8 #7D42C8
monochromatic
#6F6B20 #9F982E #C8C042 #D6D071 #E4E0A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C8C042#FFFFFF#000000##000000
##C8C0421.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)
#D0B930
Deuteranopia (green-blind)
#D3BF4A
Tritanopia (blue-blind)
#D6B3A6
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #c8c042;
/* rgb */ color: rgb(200, 192, 66);
/* oklch */ color: oklch(79.2% 0.144 105.7);
Tailwind
colors: {
  custom: {
    50: '#dcd27d',
    500: '#c8c042',
    950: '#000000',
  },
}
SCSS
$custom: #c8c042;
$custom-light: #dcd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c042",
  "rgb": {
    "r": 200,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 56.418,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.79153,
    "c": 0.14393,
    "h": 105.7
  },
  "luminance": 0.50372
}

Semantic roles & 50–950 ramp

primary
#C8C042
secondary
#363A79
accent
#52DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C8C042

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

Preview Lab → · Contrast checker → · Palette generator →

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