#8A7229#8A7229

#8A7229 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 56.1% C 0.095 H 90.6°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A7229
RGBrgb(138, 114, 41)
HSLhsl(45, 54%, 35%)
HSVhsv(45, 70%, 54%)
CMYKcmyk(0%, 17.4%, 70.3%, 45.9%)
CIE-LABlab(49.01, 0.96, 42.40)
CIE-LCHlch(49.01, 42.41, 88.70°)
OKLaboklab(56.08% -0.0009 0.0954)
OKLCHoklch(56.08% 0.095 90.6)
XYZxyz(16.8997, 17.5990, 4.6042)
Luminance0.1760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7229 #29418A
analogous
#8A4229 #8A7229 #718A29
triadic
#8A7229 #298A72 #72298A
tetradic
#8A7229 #298A42 #29418A #8A2971
square
#8A7229 #298A42 #29418A #8A2971
split-complementary
#8A7229 #29718A #42298A
monochromatic
#2C240D #5B4B1B #8A7229 #B99937 #CFB35E

Accessibility & contrast

On white

4.65
#8A7229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8A7229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7229
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7229#FFFFFF#000000##FFFFFF
##8A72291.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7120
Deuteranopia (green-blind)
#85772C
Tritanopia (blue-blind)
#956963
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a7229;
/* rgb */ color: rgb(138, 114, 41);
/* oklch */ color: oklch(56.1% 0.095 90.6);
Tailwind
colors: {
  custom: {
    50: '#af9a67',
    500: '#8a7229',
    950: '#000000',
  },
}
SCSS
$custom: #8a7229;
$custom-light: #af9a67;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7229",
  "rgb": {
    "r": 138,
    "g": 114,
    "b": 41
  },
  "hsl": {
    "h": 45.155,
    "s": 54.19,
    "l": 35.098
  },
  "oklch": {
    "l": 0.56081,
    "c": 0.09544,
    "h": 90.6
  },
  "luminance": 0.17598
}

Semantic roles & 50–950 ramp

primary
#8A7229
secondary
#5A70B5
accent
#6FDE4A
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7229

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

Preview Lab → · Contrast checker → · Palette generator →

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