#C7B22B#C7B22B

#C7B22B is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.9% C 0.146 H 99.9°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#C7B22B
RGBrgb(199, 178, 43)
HSLhsl(52, 64%, 47%)
HSVhsv(52, 78%, 78%)
CMYKcmyk(0%, 10.6%, 78.4%, 22%)
CIE-LABlab(72.33, -6.34, 66.14)
CIE-LCHlch(72.33, 66.44, 95.47°)
OKLaboklab(75.94% -0.025 0.1437)
OKLCHoklch(75.94% 0.146 99.9)
XYZxyz(39.9116, 44.1593, 8.7064)
Luminance0.4416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7B22B #2B40C7
analogous
#C7642B #C7B22B #8EC72B
triadic
#C7B22B #2BC7B2 #B22BC7
tetradic
#C7B22B #2BC764 #2B40C7 #C72B8E
square
#C7B22B #2BC764 #2B40C7 #C72B8E
split-complementary
#C7B22B #2B8EC7 #642BC7
monochromatic
#625815 #958520 #C7B22B #DAC855 #E5D887

Accessibility & contrast

On white

2.14
#C7B22B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.83
#C7B22B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7B22B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7B22B#FFFFFF#000000##000000
##C7B22B1.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C4AD06
Deuteranopia (green-blind)
#CAB535
Tritanopia (blue-blind)
#D7A499
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c7b22b;
/* rgb */ color: rgb(199, 178, 43);
/* oklch */ color: oklch(75.9% 0.146 99.9);
Tailwind
colors: {
  custom: {
    50: '#dcc870',
    500: '#c7b22b',
    950: '#000000',
  },
}
SCSS
$custom: #c7b22b;
$custom-light: #dcc870;
$custom-dark: #000000;
JSON
{
  "hex": "#c7b22b",
  "rgb": {
    "r": 199,
    "g": 178,
    "b": 43
  },
  "hsl": {
    "h": 51.923,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.75937,
    "c": 0.14589,
    "h": 99.9
  },
  "luminance": 0.44157
}

Semantic roles & 50–950 ramp

primary
#C7B22B
secondary
#7F8ACF
accent
#57E740
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C7B22B

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

Preview Lab → · Contrast checker → · Palette generator →

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