#8A7D29#8A7D29

#8A7D29 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.104 H 100.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A7D29
RGBrgb(138, 125, 41)
HSLhsl(52, 54%, 35%)
HSVhsv(52, 70%, 54%)
CMYKcmyk(0%, 9.4%, 70.3%, 45.9%)
CIE-LABlab(52.10, -5.25, 45.59)
CIE-LCHlch(52.10, 45.89, 96.57°)
OKLaboklab(58.53% -0.0187 0.1022)
OKLCHoklch(58.53% 0.104 100.4)
XYZxyz(18.2159, 20.2314, 5.0429)
Luminance0.2023 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D29 #29368A
analogous
#8A4D29 #8A7D29 #668A29
triadic
#8A7D29 #298A7D #7D298A
tetradic
#8A7D29 #298A4D #29368A #8A2966
square
#8A7D29 #298A4D #29368A #8A2966
split-complementary
#8A7D29 #29668A #4D298A
monochromatic
#2C280D #5B521B #8A7D29 #B9A837 #CFC05E

Accessibility & contrast

On white

4.16
#8A7D29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A7D29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D29
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D29#FFFFFF#000000##000000
##8A7D291.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#89791D
Deuteranopia (green-blind)
#8D7E2E
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d29;
/* rgb */ color: rgb(138, 125, 41);
/* oklch */ color: oklch(58.5% 0.104 100.4);
Tailwind
colors: {
  custom: {
    50: '#afa268',
    500: '#8a7d29',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d29;
$custom-light: #afa268;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d29",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 41
  },
  "hsl": {
    "h": 51.959,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58527,
    "c": 0.10387,
    "h": 100.4
  },
  "luminance": 0.20231
}

Semantic roles & 50–950 ramp

primary
#8A7D29
secondary
#5A66B5
accent
#5EDE4A
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D29

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

Preview Lab → · Contrast checker → · Palette generator →

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