#C7BA45#C7BA45

#C7BA45 is a light, vivid yellow. Relative luminance 0.477; OKLCH L 77.8% C 0.136 H 103.0°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#C7BA45
RGBrgb(199, 186, 69)
HSLhsl(54, 54%, 53%)
HSVhsv(54, 65%, 78%)
CMYKcmyk(0%, 6.5%, 65.3%, 22%)
CIE-LABlab(74.63, -9.24, 58.77)
CIE-LCHlch(74.63, 59.49, 98.94°)
OKLaboklab(77.81% -0.0305 0.1328)
OKLCHoklch(77.81% 0.136 103)
XYZxyz(42.1879, 47.6913, 12.6122)
Luminance0.4769 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BA45 #4552C7
analogous
#C77945 #C7BA45 #93C745
triadic
#C7BA45 #45C7BA #BA45C7
tetradic
#C7BA45 #45C779 #4552C7 #C74593
square
#C7BA45 #45C779 #4552C7 #C74593
split-complementary
#C7BA45 #4593C7 #7945C7
monochromatic
#706822 #9F9430 #C7BA45 #D5CB74 #E3DDA3

Accessibility & contrast

On white

1.99
#C7BA45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.54
#C7BA45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7BA45
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7BA45#FFFFFF#000000##000000
##C7BA451.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB436
Deuteranopia (green-blind)
#CEBA4C
Tritanopia (blue-blind)
#D5AEA2
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #c7ba45;
/* rgb */ color: rgb(199, 186, 69);
/* oklch */ color: oklch(77.8% 0.136 103.0);
Tailwind
colors: {
  custom: {
    50: '#dbce7e',
    500: '#c7ba45',
    950: '#000000',
  },
}
SCSS
$custom: #c7ba45;
$custom-light: #dbce7e;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ba45",
  "rgb": {
    "r": 199,
    "g": 186,
    "b": 69
  },
  "hsl": {
    "h": 54,
    "s": 53.719,
    "l": 52.549
  },
  "oklch": {
    "l": 0.77812,
    "c": 0.13627,
    "h": 103
  },
  "luminance": 0.4769
}

Semantic roles & 50–950 ramp

primary
#C7BA45
secondary
#989DD0
accent
#59DD4B
background
#FDFCF8
surface
#FBF9EF
border
#D4D2CA
text
#15130A
muted
#83827C

Preview Lab

Preview with #C7BA45

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

Preview Lab → · Contrast checker → · Palette generator →

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