#C7C838#C7C838

#C7C838 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.7% C 0.158 H 109.9°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#C7C838
RGBrgb(199, 200, 56)
HSLhsl(60, 57%, 50%)
HSVhsv(60, 72%, 78%)
CMYKcmyk(0.5%, 0%, 72%, 21.6%)
CIE-LABlab(78.31, -17.03, 67.39)
CIE-LCHlch(78.31, 69.51, 104.18°)
OKLaboklab(80.72% -0.0538 0.1488)
OKLCHoklch(80.72% 0.158 109.9)
XYZxyz(44.9229, 53.7375, 11.7466)
Luminance0.5374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C838 #3938C8
analogous
#C88138 #C7C838 #7FC838
triadic
#C7C838 #38C7C8 #C838C7
tetradic
#C7C838 #38C881 #3938C8 #C8387F
square
#C7C838 #38C881 #3938C8 #C8387F
split-complementary
#C7C838 #387FC8 #8138C8
monochromatic
#68691D #98992A #C7C838 #D4D568 #E2E398

Accessibility & contrast

On white

1.79
#C7C838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#C7C838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C838
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C838#FFFFFF#000000##000000
##C7C8381.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF1C
Deuteranopia (green-blind)
#DAC443
Tritanopia (blue-blind)
#D5BBAC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #c7c838;
/* rgb */ color: rgb(199, 200, 56);
/* oklch */ color: oklch(80.7% 0.158 109.9);
Tailwind
colors: {
  custom: {
    50: '#dcd879',
    500: '#c7c838',
    950: '#000000',
  },
}
SCSS
$custom: #c7c838;
$custom-light: #dcd879;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c838",
  "rgb": {
    "r": 199,
    "g": 200,
    "b": 56
  },
  "hsl": {
    "h": 60.417,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.80716,
    "c": 0.15825,
    "h": 109.9
  },
  "luminance": 0.53736
}

Semantic roles & 50–950 ramp

primary
#C7C838
secondary
#323273
accent
#48E049
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C838

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

Preview Lab → · Contrast checker → · Palette generator →

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