#8A7B22#8A7B22

#8A7B22 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.107 H 99.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7B22
RGBrgb(138, 123, 34)
HSLhsl(51, 60%, 34%)
HSVhsv(51, 75%, 54%)
CMYKcmyk(0%, 10.9%, 75.4%, 45.9%)
CIE-LABlab(51.48, -4.51, 47.86)
CIE-LCHlch(51.48, 48.07, 95.38°)
OKLaboklab(58.02% -0.0174 0.1056)
OKLCHoklch(58.02% 0.107 99.3)
XYZxyz(17.8538, 19.6856, 4.3723)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B22 #22318A
analogous
#8A4722 #8A7B22 #658A22
triadic
#8A7B22 #228A7B #7B228A
tetradic
#8A7B22 #228A47 #22318A #8A2265
square
#8A7B22 #228A47 #22318A #8A2265
split-complementary
#8A7B22 #22658A #47228A
monochromatic
#28230A #594F16 #8A7B22 #BBA72E #D4C252

Accessibility & contrast

On white

4.25
#8A7B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A7B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B22
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B22#FFFFFF#000000##000000
##8A7B221.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877813
Deuteranopia (green-blind)
#8B7D28
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b22;
/* rgb */ color: rgb(138, 123, 34);
/* oklch */ color: oklch(58.0% 0.107 99.3);
Tailwind
colors: {
  custom: {
    50: '#b0a064',
    500: '#8a7b22',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b22;
$custom-light: #b0a064;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b22",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 51.346,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5802,
    "c": 0.10705,
    "h": 99.3
  },
  "luminance": 0.19685
}

Semantic roles & 50–950 ramp

primary
#8A7B22
secondary
#505FB8
accent
#5BE444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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