#9A7E1F#9A7E1F

#9A7E1F is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.3% C 0.113 H 91.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9A7E1F
RGBrgb(154, 126, 31)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 80%, 60%)
CMYKcmyk(0%, 18.2%, 79.9%, 39.6%)
CIE-LABlab(53.91, 1.10, 51.84)
CIE-LCHlch(53.91, 51.85, 88.79°)
OKLaboklab(60.32% -0.0027 0.1127)
OKLCHoklch(60.32% 0.113 91.4)
XYZxyz(21.0358, 21.8920, 4.4137)
Luminance0.2189 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7E1F #1F3B9A
analogous
#9A411F #9A7E1F #799A1F
triadic
#9A7E1F #1F9A7E #7E1F9A
tetradic
#9A7E1F #1F9A41 #1F3B9A #9A1F79
square
#9A7E1F #1F9A41 #1F3B9A #9A1F79
split-complementary
#9A7E1F #1F799A #411F9A
monochromatic
#342B0A #675415 #9A7E1F #CDA829 #DDBE56

Accessibility & contrast

On white

3.90
#9A7E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9A7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7E1F
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7E1F#FFFFFF#000000##000000
##9A7E1F1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0A
Deuteranopia (green-blind)
#948425
Tritanopia (blue-blind)
#A7736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9a7e1f;
/* rgb */ color: rgb(154, 126, 31);
/* oklch */ color: oklch(60.3% 0.113 91.4);
Tailwind
colors: {
  custom: {
    50: '#bca363',
    500: '#9a7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #9a7e1f;
$custom-light: #bca363;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7e1f",
  "rgb": {
    "r": 154,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 46.341,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60316,
    "c": 0.11277,
    "h": 91.4
  },
  "luminance": 0.21891
}

Semantic roles & 50–950 ramp

primary
#9A7E1F
secondary
#546DC1
accent
#65E93E
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9A7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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