#C7BA3F#C7BA3F

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

Color values

HEX#C7BA3F
RGBrgb(199, 186, 63)
HSLhsl(54, 55%, 51%)
HSVhsv(54, 68%, 78%)
CMYKcmyk(0%, 6.5%, 68.3%, 22%)
CIE-LABlab(74.58, -9.58, 61.15)
CIE-LCHlch(74.58, 61.90, 98.90°)
OKLaboklab(77.76% -0.0322 0.1369)
OKLCHoklch(77.76% 0.141 103.2)
XYZxyz(42.0110, 47.6205, 11.6804)
Luminance0.4762 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7BA3F #3F4CC7
analogous
#C7763F #C7BA3F #90C73F
triadic
#C7BA3F #3FC7BA #BA3FC7
tetradic
#C7BA3F #3FC776 #3F4CC7 #C73F90
square
#C7BA3F #3FC776 #3F4CC7 #C73F90
split-complementary
#C7BA3F #3F90C7 #763FC7
monochromatic
#6C6520 #9B912D #C7BA3F #D5CB6E #E3DC9E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C7BA3F#FFFFFF#000000##000000
##C7BA3F1.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)
#CAB42D
Deuteranopia (green-blind)
#CFBA47
Tritanopia (blue-blind)
#D6ADA1
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #c7ba3f;
/* rgb */ color: rgb(199, 186, 63);
/* oklch */ color: oklch(77.8% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#dbce7b',
    500: '#c7ba3f',
    950: '#000000',
  },
}
SCSS
$custom: #c7ba3f;
$custom-light: #dbce7b;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ba3f",
  "rgb": {
    "r": 199,
    "g": 186,
    "b": 63
  },
  "hsl": {
    "h": 54.265,
    "s": 54.839,
    "l": 51.373
  },
  "oklch": {
    "l": 0.77762,
    "c": 0.14059,
    "h": 103.2
  },
  "luminance": 0.47619
}

Semantic roles & 50–950 ramp

primary
#C7BA3F
secondary
#9399CF
accent
#58DE4A
background
#FDFCF7
surface
#FBF9EE
border
#D4D2C9
text
#15130A
muted
#83827C

Preview Lab

Preview with #C7BA3F

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

Preview Lab → · Contrast checker → · Palette generator →

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