#9C7E1F#9C7E1F

#9C7E1F is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.5% C 0.113 H 90.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#9C7E1F
RGBrgb(156, 126, 31)
HSLhsl(46, 67%, 37%)
HSVhsv(46, 80%, 61%)
CMYKcmyk(0%, 19.2%, 80.1%, 38.8%)
CIE-LABlab(54.12, 2.02, 52.10)
CIE-LCHlch(54.12, 52.14, 87.78°)
OKLaboklab(60.53% -0.0002 0.1132)
OKLCHoklch(60.53% 0.113 90.1)
XYZxyz(21.4198, 22.0899, 4.4317)
Luminance0.2209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C7E1F #1F3D9C
analogous
#9C401F #9C7E1F #7C9C1F
triadic
#9C7E1F #1F9C7E #7E1F9C
tetradic
#9C7E1F #1F9C40 #1F3D9C #9C1F7C
square
#9C7E1F #1F9C40 #1F3D9C #9C1F7C
split-complementary
#9C7E1F #1F7C9C #401F9C
monochromatic
#362C0B #695515 #9C7E1F #CFA729 #DEBE58

Accessibility & contrast

On white

3.88
#9C7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#9C7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C7E1F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C7E1F#FFFFFF#000000##000000
##9C7E1F1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D0A
Deuteranopia (green-blind)
#958525
Tritanopia (blue-blind)
#A9736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9c7e1f;
/* rgb */ color: rgb(156, 126, 31);
/* oklch */ color: oklch(60.5% 0.113 90.1);
Tailwind
colors: {
  custom: {
    50: '#bda363',
    500: '#9c7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9c7e1f;
$custom-light: #bda363;
$custom-dark: #000000;
JSON
{
  "hex": "#9c7e1f",
  "rgb": {
    "r": 156,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 45.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.6053,
    "c": 0.11321,
    "h": 90.1
  },
  "luminance": 0.22089
}

Semantic roles & 50–950 ramp

primary
#9C7E1F
secondary
#556FC1
accent
#67EA3E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9C7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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