#8A7E21#8A7E21

#8A7E21 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.7% C 0.110 H 101.7°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A7E21
RGBrgb(138, 126, 33)
HSLhsl(53, 61%, 34%)
HSVhsv(53, 76%, 54%)
CMYKcmyk(0%, 8.7%, 76.1%, 45.9%)
CIE-LABlab(52.33, -6.23, 49.05)
CIE-LCHlch(52.33, 49.44, 97.23°)
OKLaboklab(58.69% -0.0223 0.108)
OKLCHoklch(58.69% 0.11 101.7)
XYZxyz(18.2174, 20.4356, 4.4234)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E21 #212D8A
analogous
#8A4921 #8A7E21 #618A21
triadic
#8A7E21 #218A7E #7E218A
tetradic
#8A7E21 #218A49 #212D8A #8A2161
square
#8A7E21 #218A49 #212D8A #8A2161
split-complementary
#8A7E21 #21618A #49218A
monochromatic
#272409 #595115 #8A7E21 #BBAB2D #D5C650

Accessibility & contrast

On white

4.13
#8A7E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A7E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E21
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E21#FFFFFF#000000##000000
##8A7E211.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0F
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e21;
/* rgb */ color: rgb(138, 126, 33);
/* oklch */ color: oklch(58.7% 0.110 101.7);
Tailwind
colors: {
  custom: {
    50: '#b0a364',
    500: '#8a7e21',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e21;
$custom-light: #b0a364;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e21",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 53.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5869,
    "c": 0.11025,
    "h": 101.7
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#8A7E21
secondary
#4E5AB9
accent
#56E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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