#C7BB42#C7BB42

#C7BB42 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 78.0% C 0.139 H 103.6°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#C7BB42
RGBrgb(199, 187, 66)
HSLhsl(55, 54%, 52%)
HSVhsv(55, 67%, 78%)
CMYKcmyk(0%, 6%, 66.8%, 22%)
CIE-LABlab(74.87, -9.93, 60.25)
CIE-LCHlch(74.87, 61.06, 99.36°)
OKLaboklab(78% -0.0328 0.1354)
OKLCHoklch(78% 0.139 103.6)
XYZxyz(42.3086, 48.0778, 12.2045)
Luminance0.4808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BB42 #424EC7
analogous
#C77842 #C7BB42 #91C742
triadic
#C7BB42 #42C7BB #BB42C7
tetradic
#C7BB42 #42C778 #424EC7 #C74291
square
#C7BB42 #42C778 #424EC7 #C74291
split-complementary
#C7BB42 #4291C7 #7842C7
monochromatic
#6E6721 #9D932F #C7BB42 #D5CC71 #E3DDA0

Accessibility & contrast

On white

1.98
#C7BB42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.62
#C7BB42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7BB42
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7BB42#FFFFFF#000000##000000
##C7BB421.001.9810.6210.62
#FFFFFF1.981.0021.0021.00
#00000010.6221.001.001.00
##00000010.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB531
Deuteranopia (green-blind)
#CFBB49
Tritanopia (blue-blind)
#D6AEA2
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #c7bb42;
/* rgb */ color: rgb(199, 187, 66);
/* oklch */ color: oklch(78.0% 0.139 103.6);
Tailwind
colors: {
  custom: {
    50: '#dbcf7d',
    500: '#c7bb42',
    950: '#000000',
  },
}
SCSS
$custom: #c7bb42;
$custom-light: #dbcf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7bb42",
  "rgb": {
    "r": 199,
    "g": 187,
    "b": 66
  },
  "hsl": {
    "h": 54.586,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.77999,
    "c": 0.13937,
    "h": 103.6
  },
  "luminance": 0.48076
}

Semantic roles & 50–950 ramp

primary
#C7BB42
secondary
#959BD0
accent
#57DE4A
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C7BB42

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

Preview Lab → · Contrast checker → · Palette generator →

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