#C7C338#C7C338

#C7C338 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.6% C 0.153 H 107.8°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#C7C338
RGBrgb(199, 195, 56)
HSLhsl(58, 56%, 50%)
HSVhsv(58, 72%, 78%)
CMYKcmyk(0%, 2%, 71.9%, 22%)
CIE-LABlab(76.96, -14.52, 66.10)
CIE-LCHlch(76.96, 67.67, 102.39°)
OKLaboklab(79.64% -0.0468 0.1461)
OKLCHoklch(79.64% 0.153 107.8)
XYZxyz(43.7838, 51.4593, 11.3669)
Luminance0.5146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7C338 #383CC7
analogous
#C77C38 #C7C338 #83C738
triadic
#C7C338 #38C7C3 #C338C7
tetradic
#C7C338 #38C77C #383CC7 #C73883
square
#C7C338 #38C77C #383CC7 #C73883
split-complementary
#C7C338 #3883C7 #7C38C7
monochromatic
#67651D #97942B #C7C338 #D4D168 #E2E098

Accessibility & contrast

On white

1.86
#C7C338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#C7C338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7C338
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7C338#FFFFFF#000000##000000
##C7C3381.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB1E
Deuteranopia (green-blind)
#D6C042
Tritanopia (blue-blind)
#D5B6A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #c7c338;
/* rgb */ color: rgb(199, 195, 56);
/* oklch */ color: oklch(79.6% 0.153 107.8);
Tailwind
colors: {
  custom: {
    50: '#dcd478',
    500: '#c7c338',
    950: '#000000',
  },
}
SCSS
$custom: #c7c338;
$custom-light: #dcd478;
$custom-dark: #000000;
JSON
{
  "hex": "#c7c338",
  "rgb": {
    "r": 199,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 58.322,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.79636,
    "c": 0.1534,
    "h": 107.8
  },
  "luminance": 0.51458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C7C338

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

Preview Lab → · Contrast checker → · Palette generator →

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