#8A7F29#8A7F29

#8A7F29 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.106 H 101.9°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7F29
RGBrgb(138, 127, 41)
HSLhsl(53, 54%, 35%)
HSVhsv(53, 70%, 54%)
CMYKcmyk(0%, 8%, 70.3%, 45.9%)
CIE-LABlab(52.67, -6.36, 46.16)
CIE-LCHlch(52.67, 46.60, 97.84°)
OKLaboklab(58.98% -0.0218 0.1034)
OKLCHoklch(58.98% 0.106 101.9)
XYZxyz(18.4716, 20.7429, 5.1282)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F29 #29348A
analogous
#8A4F29 #8A7F29 #648A29
triadic
#8A7F29 #298A7F #7F298A
tetradic
#8A7F29 #298A4F #29348A #8A2964
square
#8A7F29 #298A4F #29348A #8A2964
split-complementary
#8A7F29 #29648A #4F298A
monochromatic
#2C280D #5B541B #8A7F29 #B9AA37 #CFC25E

Accessibility & contrast

On white

4.08
#8A7F29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A7F29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F29
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F29#FFFFFF#000000##000000
##8A7F291.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1D
Deuteranopia (green-blind)
#8E802E
Tritanopia (blue-blind)
#95766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f29;
/* rgb */ color: rgb(138, 127, 41);
/* oklch */ color: oklch(59.0% 0.106 101.9);
Tailwind
colors: {
  custom: {
    50: '#afa368',
    500: '#8a7f29',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f29;
$custom-light: #afa368;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f29",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 41
  },
  "hsl": {
    "h": 53.196,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58978,
    "c": 0.10568,
    "h": 101.9
  },
  "luminance": 0.20742
}

Semantic roles & 50–950 ramp

primary
#8A7F29
secondary
#5A64B5
accent
#5BDE4A
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F29

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

Preview Lab → · Contrast checker → · Palette generator →

#8A7F29 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva