#C8C242#C8C242

#C8C242 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.6% C 0.146 H 106.7°. Best body text is #000000 at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#C8C242
RGBrgb(200, 194, 66)
HSLhsl(57, 55%, 52%)
HSVhsv(57, 67%, 78%)
CMYKcmyk(0%, 3%, 67%, 21.6%)
CIE-LABlab(76.83, -13.08, 62.28)
CIE-LCHlch(76.83, 63.64, 101.86°)
OKLaboklab(79.58% -0.0418 0.1397)
OKLCHoklch(79.58% 0.146 106.7)
XYZxyz(44.0962, 51.2578, 12.7241)
Luminance0.5126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8C242 #4248C8
analogous
#C87F42 #C8C242 #8BC842
triadic
#C8C242 #42C8C2 #C242C8
tetradic
#C8C242 #42C87F #4248C8 #C8428B
square
#C8C242 #42C87F #4248C8 #C8428B
split-complementary
#C8C242 #428BC8 #7F42C8
monochromatic
#6F6C20 #9F9A2E #C8C242 #D6D171 #E4E1A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C8C242#FFFFFF#000000##000000
##C8C2421.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)
#D2BB30
Deuteranopia (green-blind)
#D5C04A
Tritanopia (blue-blind)
#D6B5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c8c242;
/* rgb */ color: rgb(200, 194, 66);
/* oklch */ color: oklch(79.6% 0.146 106.7);
Tailwind
colors: {
  custom: {
    50: '#dcd47d',
    500: '#c8c242',
    950: '#000000',
  },
}
SCSS
$custom: #c8c242;
$custom-light: #dcd47d;
$custom-dark: #000000;
JSON
{
  "hex": "#c8c242",
  "rgb": {
    "r": 200,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 57.313,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.7958,
    "c": 0.14583,
    "h": 106.7
  },
  "luminance": 0.51256
}

Semantic roles & 50–950 ramp

primary
#C8C242
secondary
#363979
accent
#50DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C8C242

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

Preview Lab → · Contrast checker → · Palette generator →

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