#8A7E22#8A7E22

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

Color values

HEX#8A7E22
RGBrgb(138, 126, 34)
HSLhsl(53, 60%, 34%)
HSVhsv(53, 75%, 54%)
CMYKcmyk(0%, 8.7%, 75.4%, 45.9%)
CIE-LABlab(52.33, -6.18, 48.68)
CIE-LCHlch(52.33, 49.07, 97.23°)
OKLaboklab(58.7% -0.0221 0.1074)
OKLCHoklch(58.7% 0.11 101.6)
XYZxyz(18.2317, 20.4413, 4.4983)
Luminance0.2044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E22 #222E8A
analogous
#8A4A22 #8A7E22 #628A22
triadic
#8A7E22 #228A7E #7E228A
tetradic
#8A7E22 #228A4A #222E8A #8A2262
square
#8A7E22 #228A4A #222E8A #8A2262
split-complementary
#8A7E22 #22628A #4A228A
monochromatic
#28240A #595116 #8A7E22 #BBAB2E #D4C552

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7E22#FFFFFF#000000##000000
##8A7E221.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)
#8A7A11
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e22;
/* rgb */ color: rgb(138, 126, 34);
/* oklch */ color: oklch(58.7% 0.110 101.6);
Tailwind
colors: {
  custom: {
    50: '#afa364',
    500: '#8a7e22',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e22;
$custom-light: #afa364;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e22",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 53.077,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58697,
    "c": 0.10962,
    "h": 101.6
  },
  "luminance": 0.2044
}

Semantic roles & 50–950 ramp

primary
#8A7E22
secondary
#505CB8
accent
#57E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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