#C7C438#C7C438

#C7C438 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 79.9% C 0.154 H 108.2°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#C7C438
RGBrgb(199, 196, 56)
HSLhsl(59, 56%, 50%)
HSVhsv(59, 72%, 78%)
CMYKcmyk(0%, 1.5%, 71.9%, 22%)
CIE-LABlab(77.23, -15.02, 66.36)
CIE-LCHlch(77.23, 68.04, 102.76°)
OKLaboklab(79.85% -0.0482 0.1466)
OKLCHoklch(79.85% 0.154 108.2)
XYZxyz(44.0086, 51.9089, 11.4418)
Luminance0.5191 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C438 #383BC7
analogous
#C77C38 #C7C438 #83C738
triadic
#C7C438 #38C7C4 #C438C7
tetradic
#C7C438 #38C77C #383BC7 #C73883
square
#C7C438 #38C77C #383BC7 #C73883
split-complementary
#C7C438 #3883C7 #7C38C7
monochromatic
#67661D #97952B #C7C438 #D4D268 #E2E098

Accessibility & contrast

On white

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

On black

11.38
#C7C438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C438
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C438#FFFFFF#000000##000000
##C7C4381.001.8511.3811.38
#FFFFFF1.851.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC1E
Deuteranopia (green-blind)
#D6C142
Tritanopia (blue-blind)
#D5B7A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #c7c438;
/* rgb */ color: rgb(199, 196, 56);
/* oklch */ color: oklch(79.9% 0.154 108.2);
Tailwind
colors: {
  custom: {
    50: '#dcd578',
    500: '#c7c438',
    950: '#000000',
  },
}
SCSS
$custom: #c7c438;
$custom-light: #dcd578;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c438",
  "rgb": {
    "r": 199,
    "g": 196,
    "b": 56
  },
  "hsl": {
    "h": 58.741,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.79852,
    "c": 0.15436,
    "h": 108.2
  },
  "luminance": 0.51907
}

Semantic roles & 50–950 ramp

primary
#C7C438
secondary
#323372
accent
#4CDF48
background
#FEFEFB
surface
#FCFBF1
border
#D5D4CB
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C438

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

Preview Lab → · Contrast checker → · Palette generator →

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