#C7AB3B#C7AB3B

#C7AB3B is a light, vivid yellow. Relative luminance 0.416; OKLCH L 74.6% C 0.131 H 94.8°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#C7AB3B
RGBrgb(199, 171, 59)
HSLhsl(48, 56%, 51%)
HSVhsv(48, 70%, 78%)
CMYKcmyk(0%, 14.1%, 70.4%, 22%)
CIE-LABlab(70.58, -1.96, 58.71)
CIE-LCHlch(70.58, 58.74, 91.91°)
OKLaboklab(74.58% -0.0109 0.131)
OKLCHoklch(74.58% 0.131 94.8)
XYZxyz(38.9075, 41.5858, 10.1143)
Luminance0.4158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C7AB3B #3B57C7
analogous
#C7653B #C7AB3B #9DC73B
triadic
#C7AB3B #3BC7AB #AB3BC7
tetradic
#C7AB3B #3BC765 #3B57C7 #C73B9D
square
#C7AB3B #3BC765 #3B57C7 #C73B9D
split-complementary
#C7AB3B #3B9DC7 #653BC7
monochromatic
#695A1E #99832C #C7AB3B #D5BF6B #E2D49A

Accessibility & contrast

On white

2.25
#C7AB3B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#C7AB3B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C7AB3B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C7AB3B#FFFFFF#000000##000000
##C7AB3B1.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA82B
Deuteranopia (green-blind)
#C4B041
Tritanopia (blue-blind)
#D79E94
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c7ab3b;
/* rgb */ color: rgb(199, 171, 59);
/* oklch */ color: oklch(74.6% 0.131 94.8);
Tailwind
colors: {
  custom: {
    50: '#dcc377',
    500: '#c7ab3b',
    950: '#000000',
  },
}
SCSS
$custom: #c7ab3b;
$custom-light: #dcc377;
$custom-dark: #000000;
JSON
{
  "hex": "#c7ab3b",
  "rgb": {
    "r": 199,
    "g": 171,
    "b": 59
  },
  "hsl": {
    "h": 48,
    "s": 55.556,
    "l": 50.588
  },
  "oklch": {
    "l": 0.74581,
    "c": 0.13144,
    "h": 94.8
  },
  "luminance": 0.41584
}

Semantic roles & 50–950 ramp

primary
#C7AB3B
secondary
#909CCE
accent
#67DF49
background
#FEFBF7
surface
#FCF7EE
border
#D5D0C9
text
#161209
muted
#84817B

Preview Lab

Preview with #C7AB3B

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

Preview Lab → · Contrast checker → · Palette generator →

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