#C7C938#C7C938

#C7C938 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 80.9% C 0.159 H 110.3°. Best body text is #000000 at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#C7C938
RGBrgb(199, 201, 56)
HSLhsl(61, 57%, 50%)
HSVhsv(61, 72%, 79%)
CMYKcmyk(1%, 0%, 72.1%, 21.2%)
CIE-LABlab(78.58, -17.52, 67.65)
CIE-LCHlch(78.58, 69.88, 104.52°)
OKLaboklab(80.93% -0.0552 0.1494)
OKLCHoklch(80.93% 0.159 110.3)
XYZxyz(45.1552, 54.2022, 11.8240)
Luminance0.5420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C938 #3A38C9
analogous
#C98338 #C7C938 #7EC938
triadic
#C7C938 #38C7C9 #C938C7
tetradic
#C7C938 #38C983 #3A38C9 #C9387E
square
#C7C938 #38C983 #3A38C9 #C9387E
split-complementary
#C7C938 #387EC9 #8338C9
monochromatic
#696A1D #989A2A #C7C938 #D5D668 #E2E398

Accessibility & contrast

On white

1.77
#C7C938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#C7C938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C938
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C938#FFFFFF#000000##000000
##C7C9381.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c7c938;
/* rgb */ color: rgb(199, 201, 56);
/* oklch */ color: oklch(80.9% 0.159 110.3);
Tailwind
colors: {
  custom: {
    50: '#dcd979',
    500: '#c7c938',
    950: '#000000',
  },
}
SCSS
$custom: #c7c938;
$custom-light: #dcd979;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c938",
  "rgb": {
    "r": 199,
    "g": 201,
    "b": 56
  },
  "hsl": {
    "h": 60.828,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.80932,
    "c": 0.15924,
    "h": 110.3
  },
  "luminance": 0.54201
}

Semantic roles & 50–950 ramp

primary
#C7C938
secondary
#323174
accent
#47E149
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#15140A
muted
#84837D

Preview Lab

Preview with #C7C938

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

Preview Lab → · Contrast checker → · Palette generator →

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