#C8C340#C8C340

#C8C340 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.8% C 0.148 H 107.2°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#C8C340
RGBrgb(200, 195, 64)
HSLhsl(58, 55%, 52%)
HSVhsv(58, 68%, 78%)
CMYKcmyk(0%, 2.5%, 68%, 21.6%)
CIE-LABlab(77.09, -13.69, 63.31)
CIE-LCHlch(77.09, 64.78, 102.20°)
OKLaboklab(79.78% -0.0437 0.1416)
OKLCHoklch(79.78% 0.148 107.2)
XYZxyz(44.2616, 51.6812, 12.4934)
Luminance0.5168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C340 #4045C8
analogous
#C87F40 #C8C340 #89C840
triadic
#C8C340 #40C8C3 #C340C8
tetradic
#C8C340 #40C87F #4045C8 #C84089
square
#C8C340 #40C87F #4045C8 #C84089
split-complementary
#C8C340 #4089C8 #7F40C8
monochromatic
#6E6B20 #9D992D #C8C340 #D6D270 #E3E19F

Accessibility & contrast

On white

1.85
#C8C340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#C8C340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8C340
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8C340#FFFFFF#000000##000000
##C8C3401.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2C
Deuteranopia (green-blind)
#D6C149
Tritanopia (blue-blind)
#D6B6A9
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c8c340;
/* rgb */ color: rgb(200, 195, 64);
/* oklch */ color: oklch(79.8% 0.148 107.2);
Tailwind
colors: {
  custom: {
    50: '#dcd47c',
    500: '#c8c340',
    950: '#000000',
  },
}
SCSS
$custom: #c8c340;
$custom-light: #dcd47c;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c340",
  "rgb": {
    "r": 200,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 57.794,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79779,
    "c": 0.14816,
    "h": 107.2
  },
  "luminance": 0.5168
}

Semantic roles & 50–950 ramp

primary
#C8C340
secondary
#353777
accent
#4FDF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C8C340

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

Preview Lab → · Contrast checker → · Palette generator →

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