#8A7D22#8A7D22

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

Color values

HEX#8A7D22
RGBrgb(138, 125, 34)
HSLhsl(53, 60%, 34%)
HSVhsv(53, 75%, 54%)
CMYKcmyk(0%, 9.4%, 75.4%, 45.9%)
CIE-LABlab(52.05, -5.62, 48.40)
CIE-LCHlch(52.05, 48.73, 96.63°)
OKLaboklab(58.47% -0.0205 0.1068)
OKLCHoklch(58.47% 0.109 100.9)
XYZxyz(18.1044, 20.1868, 4.4559)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D22 #222F8A
analogous
#8A4922 #8A7D22 #638A22
triadic
#8A7D22 #228A7D #7D228A
tetradic
#8A7D22 #228A49 #222F8A #8A2263
square
#8A7D22 #228A49 #222F8A #8A2263
split-complementary
#8A7D22 #22638A #49228A
monochromatic
#28240A #595116 #8A7D22 #BBA92E #D4C452

Accessibility & contrast

On white

4.17
#8A7D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A7D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D22
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D22#FFFFFF#000000##000000
##8A7D221.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897912
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#95746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d22;
/* rgb */ color: rgb(138, 125, 34);
/* oklch */ color: oklch(58.5% 0.109 100.9);
Tailwind
colors: {
  custom: {
    50: '#afa264',
    500: '#8a7d22',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d22;
$custom-light: #afa264;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d22",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 52.5,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58471,
    "c": 0.10875,
    "h": 100.9
  },
  "luminance": 0.20186
}

Semantic roles & 50–950 ramp

primary
#8A7D22
secondary
#505DB8
accent
#58E444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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