#C7B342#C7B342

#C7B342 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 76.3% C 0.132 H 99.1°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#C7B342
RGBrgb(199, 179, 66)
HSLhsl(51, 54%, 52%)
HSVhsv(51, 67%, 78%)
CMYKcmyk(0%, 10.1%, 66.8%, 22%)
CIE-LABlab(72.75, -5.78, 58.05)
CIE-LCHlch(72.75, 58.34, 95.69°)
OKLaboklab(76.31% -0.021 0.1308)
OKLCHoklch(76.31% 0.132 99.1)
XYZxyz(40.6585, 44.7775, 11.6545)
Luminance0.4478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B342 #4256C7
analogous
#C77042 #C7B342 #99C742
triadic
#C7B342 #42C7B3 #B342C7
tetradic
#C7B342 #42C770 #4256C7 #C74299
square
#C7B342 #42C770 #4256C7 #C74299
split-complementary
#C7B342 #4299C7 #7042C7
monochromatic
#6E6221 #9D8D2F #C7B342 #D5C671 #E3D9A0

Accessibility & contrast

On white

2.11
#C7B342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.96
#C7B342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B342
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B342#FFFFFF#000000##000000
##C7B3421.002.119.969.96
#FFFFFF2.111.0021.0021.00
#0000009.9621.001.001.00
##0000009.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AE33
Deuteranopia (green-blind)
#C9B648
Tritanopia (blue-blind)
#D6A69C
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #c7b342;
/* rgb */ color: rgb(199, 179, 66);
/* oklch */ color: oklch(76.3% 0.132 99.1);
Tailwind
colors: {
  custom: {
    50: '#dbc97c',
    500: '#c7b342',
    950: '#000000',
  },
}
SCSS
$custom: #c7b342;
$custom-light: #dbc97c;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b342",
  "rgb": {
    "r": 199,
    "g": 179,
    "b": 66
  },
  "hsl": {
    "h": 50.977,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.76309,
    "c": 0.13249,
    "h": 99.1
  },
  "luminance": 0.44776
}

Semantic roles & 50–950 ramp

primary
#C7B342
secondary
#959ED0
accent
#60DE4A
background
#FDFCF7
surface
#FBF8EE
border
#D4D1C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C7B342

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

Preview Lab → · Contrast checker → · Palette generator →

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