#C7B126#C7B126

#C7B126 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.7% C 0.147 H 99.5°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#C7B126
RGBrgb(199, 177, 38)
HSLhsl(52, 68%, 46%)
HSVhsv(52, 81%, 78%)
CMYKcmyk(0%, 11.1%, 80.9%, 22%)
CIE-LABlab(72.05, -5.98, 67.39)
CIE-LCHlch(72.05, 67.66, 95.07°)
OKLaboklab(75.7% -0.0244 0.1455)
OKLCHoklch(75.7% 0.147 99.5)
XYZxyz(39.6272, 43.7283, 8.1865)
Luminance0.4373 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B126 #263CC7
analogous
#C76126 #C7B126 #8DC726
triadic
#C7B126 #26C7B1 #B126C7
tetradic
#C7B126 #26C761 #263CC7 #C7268D
square
#C7B126 #26C761 #263CC7 #C7268D
split-complementary
#C7B126 #268DC7 #6126C7
monochromatic
#605612 #94831C #C7B126 #DDC94D #E7D981

Accessibility & contrast

On white

2.15
#C7B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#C7B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B126
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B126#FFFFFF#000000##000000
##C7B1261.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C9B431
Tritanopia (blue-blind)
#D7A398
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c7b126;
/* rgb */ color: rgb(199, 177, 38);
/* oklch */ color: oklch(75.7% 0.147 99.5);
Tailwind
colors: {
  custom: {
    50: '#dcc76e',
    500: '#c7b126',
    950: '#000000',
  },
}
SCSS
$custom: #c7b126;
$custom-light: #dcc76e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b126",
  "rgb": {
    "r": 199,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 51.801,
    "s": 67.932,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75701,
    "c": 0.14749,
    "h": 99.5
  },
  "luminance": 0.43726
}

Semantic roles & 50–950 ramp

primary
#C7B126
secondary
#7985CF
accent
#55EB3D
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C7B126

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

Preview Lab → · Contrast checker → · Palette generator →

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