#9A7F2E#9A7F2E

#9A7F2E is a mid, moderate yellow. Relative luminance 0.222; OKLCH L 60.6% C 0.104 H 90.3°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9A7F2E
RGBrgb(154, 127, 46)
HSLhsl(45, 54%, 39%)
HSVhsv(45, 70%, 60%)
CMYKcmyk(0%, 17.5%, 70.1%, 39.6%)
CIE-LABlab(54.29, 1.26, 46.15)
CIE-LCHlch(54.29, 46.17, 88.44°)
OKLaboklab(60.65% -0.0005 0.1037)
OKLCHoklch(60.65% 0.104 90.3)
XYZxyz(21.4101, 22.2473, 5.7507)
Luminance0.2225 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A7F2E #2E499A
analogous
#9A492E #9A7F2E #7F9A2E
triadic
#9A7F2E #2E9A7F #7F2E9A
tetradic
#9A7F2E #2E9A49 #2E499A #9A2E7F
square
#9A7F2E #2E9A49 #2E499A #9A2E7F
split-complementary
#9A7F2E #2E7F9A #492E9A
monochromatic
#3C3112 #6B5820 #9A7F2E #C6A43F #D4BB6F

Accessibility & contrast

On white

3.85
#9A7F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9A7F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A7F2E
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A7F2E#FFFFFF#000000##000000
##9A7F2E1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D24
Deuteranopia (green-blind)
#948532
Tritanopia (blue-blind)
#A7746E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9a7f2e;
/* rgb */ color: rgb(154, 127, 46);
/* oklch */ color: oklch(60.6% 0.104 90.3);
Tailwind
colors: {
  custom: {
    50: '#bba36b',
    500: '#9a7f2e',
    950: '#000000',
  },
}
SCSS
$custom: #9a7f2e;
$custom-light: #bba36b;
$custom-dark: #000000;
JSON
{
  "hex": "#9a7f2e",
  "rgb": {
    "r": 154,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 45,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.60646,
    "c": 0.1037,
    "h": 90.3
  },
  "luminance": 0.22246
}

Semantic roles & 50–950 ramp

primary
#9A7F2E
secondary
#697DBB
accent
#6FDD4A
background
#FBFAF6
surface
#F7F3EB
border
#D0CDC6
text
#120F07
muted
#817F7A

Preview Lab

Preview with #9A7F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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