#9A7C1D#9A7C1D

#9A7C1D is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.9% C 0.113 H 89.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9A7C1D
RGBrgb(154, 124, 29)
HSLhsl(46, 68%, 36%)
HSVhsv(46, 81%, 60%)
CMYKcmyk(0%, 19.5%, 81.2%, 39.6%)
CIE-LABlab(53.36, 2.14, 52.03)
CIE-LCHlch(53.36, 52.08, 87.64°)
OKLaboklab(59.88% 0.0001 0.1127)
OKLCHoklch(59.88% 0.113 89.9)
XYZxyz(20.7571, 21.3754, 4.1947)
Luminance0.2137 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7C1D #1D3B9A
analogous
#9A3D1D #9A7C1D #799A1D
triadic
#9A7C1D #1D9A7C #7C1D9A
tetradic
#9A7C1D #1D9A3D #1D3B9A #9A1D79
square
#9A7C1D #1D9A3D #1D3B9A #9A1D79
split-complementary
#9A7C1D #1D799A #3D1D9A
monochromatic
#33290A #665313 #9A7C1D #CEA527 #DFBD53

Accessibility & contrast

On white

3.98
#9A7C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#9A7C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7C1D
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7C1D#FFFFFF#000000##000000
##9A7C1D1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B06
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#A7716A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a7c1d;
/* rgb */ color: rgb(154, 124, 29);
/* oklch */ color: oklch(59.9% 0.113 89.9);
Tailwind
colors: {
  custom: {
    50: '#bca162',
    500: '#9a7c1d',
    950: '#000000',
  },
}
SCSS
$custom: #9a7c1d;
$custom-light: #bca162;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7c1d",
  "rgb": {
    "r": 154,
    "g": 124,
    "b": 29
  },
  "hsl": {
    "h": 45.6,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59875,
    "c": 0.11273,
    "h": 89.9
  },
  "luminance": 0.21374
}

Semantic roles & 50–950 ramp

primary
#9A7C1D
secondary
#516CC2
accent
#67EB3D
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130E05
muted
#827E7A

Preview Lab

Preview with #9A7C1D

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

Preview Lab → · Contrast checker → · Palette generator →

#9A7C1D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva