#C7BF42#C7BF42

#C7BF42 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.9% C 0.143 H 105.7°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#C7BF42
RGBrgb(199, 191, 66)
HSLhsl(56, 54%, 52%)
HSVhsv(56, 67%, 78%)
CMYKcmyk(0%, 4%, 66.8%, 22%)
CIE-LABlab(75.95, -11.98, 61.35)
CIE-LCHlch(75.95, 62.50, 101.05°)
OKLaboklab(78.85% -0.0386 0.1378)
OKLCHoklch(78.85% 0.143 105.7)
XYZxyz(43.1690, 49.7986, 12.4913)
Luminance0.4980 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BF42 #424AC7
analogous
#C77D42 #C7BF42 #8DC742
triadic
#C7BF42 #42C7BF #BF42C7
tetradic
#C7BF42 #42C77D #424AC7 #C7428D
square
#C7BF42 #42C77D #424AC7 #C7428D
split-complementary
#C7BF42 #428DC7 #7D42C7
monochromatic
#6E6921 #9D972F #C7BF42 #D5CF71 #E3DFA0

Accessibility & contrast

On white

1.92
#C7BF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.96
#C7BF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7BF42
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7BF42#FFFFFF#000000##000000
##C7BF421.001.9210.9610.96
#FFFFFF1.921.0021.0021.00
#00000010.9621.001.001.00
##00000010.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB830
Deuteranopia (green-blind)
#D2BE4A
Tritanopia (blue-blind)
#D5B3A6
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #c7bf42;
/* rgb */ color: rgb(199, 191, 66);
/* oklch */ color: oklch(78.9% 0.143 105.7);
Tailwind
colors: {
  custom: {
    50: '#dbd27d',
    500: '#c7bf42',
    950: '#000000',
  },
}
SCSS
$custom: #c7bf42;
$custom-light: #dbd27d;
$custom-dark: #000000;
JSON
{
  "hex": "#c7bf42",
  "rgb": {
    "r": 199,
    "g": 191,
    "b": 66
  },
  "hsl": {
    "h": 56.391,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.78852,
    "c": 0.14308,
    "h": 105.7
  },
  "luminance": 0.49797
}

Semantic roles & 50–950 ramp

primary
#C7BF42
secondary
#9599D0
accent
#53DE4A
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15140A
muted
#83827C

Preview Lab

Preview with #C7BF42

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

Preview Lab → · Contrast checker → · Palette generator →

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