#9A7E20#9A7E20

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

Color values

HEX#9A7E20
RGBrgb(154, 126, 32)
HSLhsl(46, 66%, 36%)
HSVhsv(46, 79%, 60%)
CMYKcmyk(0%, 18.2%, 79.2%, 39.6%)
CIE-LABlab(53.92, 1.14, 51.48)
CIE-LCHlch(53.92, 51.49, 88.73°)
OKLaboklab(60.32% -0.0025 0.1122)
OKLCHoklch(60.32% 0.112 91.3)
XYZxyz(21.0492, 21.8973, 4.4842)
Luminance0.2190 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7E20 #203C9A
analogous
#9A4120 #9A7E20 #799A20
triadic
#9A7E20 #209A7E #7E209A
tetradic
#9A7E20 #209A41 #203C9A #9A2079
square
#9A7E20 #209A41 #203C9A #9A2079
split-complementary
#9A7E20 #20799A #41209A
monochromatic
#352B0B #675515 #9A7E20 #CDA72B #DCBE58

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A7E20#FFFFFF#000000##000000
##9A7E201.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)
#8D7C0D
Deuteranopia (green-blind)
#948426
Tritanopia (blue-blind)
#A7736C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9a7e20;
/* rgb */ color: rgb(154, 126, 32);
/* oklch */ color: oklch(60.3% 0.112 91.3);
Tailwind
colors: {
  custom: {
    50: '#bca364',
    500: '#9a7e20',
    950: '#000000',
  },
}
SCSS
$custom: #9a7e20;
$custom-light: #bca364;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7e20",
  "rgb": {
    "r": 154,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 46.23,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60322,
    "c": 0.11223,
    "h": 91.3
  },
  "luminance": 0.21896
}

Semantic roles & 50–950 ramp

primary
#9A7E20
secondary
#566EC0
accent
#66E93F
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9A7E20

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

Preview Lab → · Contrast checker → · Palette generator →

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