#C7BA3A#C7BA3A

#C7BA3A is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.7% C 0.144 H 103.4°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#C7BA3A
RGBrgb(199, 186, 58)
HSLhsl(54, 56%, 50%)
HSVhsv(54, 71%, 78%)
CMYKcmyk(0%, 6.5%, 70.9%, 22%)
CIE-LABlab(74.55, -9.84, 63.04)
CIE-LCHlch(74.55, 63.80, 98.87°)
OKLaboklab(77.72% -0.0334 0.14)
OKLCHoklch(77.72% 0.144 103.4)
XYZxyz(41.8776, 47.5671, 10.9777)
Luminance0.4757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BA3A #3A47C7
analogous
#C7733A #C7BA3A #8DC73A
triadic
#C7BA3A #3AC7BA #BA3AC7
tetradic
#C7BA3A #3AC773 #3A47C7 #C73A8D
square
#C7BA3A #3AC773 #3A47C7 #C73A8D
split-complementary
#C7BA3A #3A8DC7 #733AC7
monochromatic
#69621E #988E2B #C7BA3A #D5CB6A #E2DB99

Accessibility & contrast

On white

2.00
#C7BA3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#C7BA3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7BA3A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7BA3A#FFFFFF#000000##000000
##C7BA3A1.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB425
Deuteranopia (green-blind)
#CFBA43
Tritanopia (blue-blind)
#D6ADA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c7ba3a;
/* rgb */ color: rgb(199, 186, 58);
/* oklch */ color: oklch(77.7% 0.144 103.4);
Tailwind
colors: {
  custom: {
    50: '#dcce78',
    500: '#c7ba3a',
    950: '#000000',
  },
}
SCSS
$custom: #c7ba3a;
$custom-light: #dcce78;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ba3a",
  "rgb": {
    "r": 199,
    "g": 186,
    "b": 58
  },
  "hsl": {
    "h": 54.468,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.77725,
    "c": 0.14391,
    "h": 103.4
  },
  "luminance": 0.47565
}

Semantic roles & 50–950 ramp

primary
#C7BA3A
secondary
#8F95CE
accent
#57DF49
background
#FEFCF7
surface
#FCF9EE
border
#D5D2C9
text
#151309
muted
#84827B

Preview Lab

Preview with #C7BA3A

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

Preview Lab → · Contrast checker → · Palette generator →

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