#C7BA3B#C7BA3B

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

Color values

HEX#C7BA3B
RGBrgb(199, 186, 59)
HSLhsl(54, 56%, 51%)
HSVhsv(54, 70%, 78%)
CMYKcmyk(0%, 6.5%, 70.4%, 22%)
CIE-LABlab(74.56, -9.79, 62.67)
CIE-LCHlch(74.56, 63.43, 98.88°)
OKLaboklab(77.73% -0.0332 0.1394)
OKLCHoklch(77.73% 0.143 103.4)
XYZxyz(41.9033, 47.5774, 11.1129)
Luminance0.4758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BA3B #3B48C7
analogous
#C7743B #C7BA3B #8EC73B
triadic
#C7BA3B #3BC7BA #BA3BC7
tetradic
#C7BA3B #3BC774 #3B48C7 #C73B8E
square
#C7BA3B #3BC774 #3B48C7 #C73B8E
split-complementary
#C7BA3B #3B8EC7 #743BC7
monochromatic
#69621E #998F2C #C7BA3B #D5CB6B #E2DC9A

Accessibility & contrast

On white

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

On black

10.52
#C7BA3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7BA3B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7BA3B#FFFFFF#000000##000000
##C7BA3B1.002.0010.5210.52
#FFFFFF2.001.0021.0021.00
#00000010.5221.001.001.00
##00000010.5221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c7ba3b;
/* rgb */ color: rgb(199, 186, 59);
/* oklch */ color: oklch(77.7% 0.143 103.4);
Tailwind
colors: {
  custom: {
    50: '#dcce79',
    500: '#c7ba3b',
    950: '#000000',
  },
}
SCSS
$custom: #c7ba3b;
$custom-light: #dcce79;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ba3b",
  "rgb": {
    "r": 199,
    "g": 186,
    "b": 59
  },
  "hsl": {
    "h": 54.429,
    "s": 55.556,
    "l": 50.588
  },
  "oklch": {
    "l": 0.77732,
    "c": 0.14327,
    "h": 103.4
  },
  "luminance": 0.47576
}

Semantic roles & 50–950 ramp

primary
#C7BA3B
secondary
#9096CE
accent
#57DF49
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C7BA3B

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

Preview Lab → · Contrast checker → · Palette generator →

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