#C7BA2A#C7BA2A

#C7BA2A is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.6% C 0.153 H 103.9°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#C7BA2A
RGBrgb(199, 186, 42)
HSLhsl(55, 65%, 47%)
HSVhsv(55, 79%, 78%)
CMYKcmyk(0%, 6.5%, 78.9%, 22%)
CIE-LABlab(74.46, -10.51, 68.35)
CIE-LCHlch(74.46, 69.15, 98.74°)
OKLaboklab(77.63% -0.0368 0.1483)
OKLCHoklch(77.63% 0.153 103.9)
XYZxyz(41.5319, 47.4289, 9.1571)
Luminance0.4743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BA2A #2A37C7
analogous
#C76C2A #C7BA2A #85C72A
triadic
#C7BA2A #2AC7BA #BA2AC7
tetradic
#C7BA2A #2AC76C #2A37C7 #C72A85
square
#C7BA2A #2AC76C #2A37C7 #C72A85
split-complementary
#C7BA2A #2A85C7 #6C2AC7
monochromatic
#625C15 #948B1F #C7BA2A #DBD053 #E5DE86

Accessibility & contrast

On white

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

On black

10.49
#C7BA2A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7BA2A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7BA2A#FFFFFF#000000##000000
##C7BA2A1.002.0010.4910.49
#FFFFFF2.001.0021.0021.00
#00000010.4921.001.001.00
##00000010.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB400
Deuteranopia (green-blind)
#CFBA36
Tritanopia (blue-blind)
#D6ADA0
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c7ba2a;
/* rgb */ color: rgb(199, 186, 42);
/* oklch */ color: oklch(77.6% 0.153 103.9);
Tailwind
colors: {
  custom: {
    50: '#dcce71',
    500: '#c7ba2a',
    950: '#000000',
  },
}
SCSS
$custom: #c7ba2a;
$custom-light: #dcce71;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ba2a",
  "rgb": {
    "r": 199,
    "g": 186,
    "b": 42
  },
  "hsl": {
    "h": 55.032,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.77627,
    "c": 0.15279,
    "h": 103.9
  },
  "luminance": 0.47427
}

Semantic roles & 50–950 ramp

primary
#C7BA2A
secondary
#7E85CF
accent
#4EE840
background
#FEFCF7
surface
#FCF9ED
border
#D5D2C8
text
#161308
muted
#84827B

Preview Lab

Preview with #C7BA2A

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

Preview Lab → · Contrast checker → · Palette generator →

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