#8A7A22#8A7A22

#8A7A22 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.106 H 98.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7A22
RGBrgb(138, 122, 34)
HSLhsl(51, 60%, 34%)
HSVhsv(51, 75%, 54%)
CMYKcmyk(0%, 11.6%, 75.4%, 45.9%)
CIE-LABlab(51.20, -3.95, 47.58)
CIE-LCHlch(51.20, 47.75, 94.74°)
OKLaboklab(57.8% -0.0158 0.1051)
OKLCHoklch(57.8% 0.106 98.6)
XYZxyz(17.7304, 19.4387, 4.3312)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A22 #22328A
analogous
#8A4622 #8A7A22 #668A22
triadic
#8A7A22 #228A7A #7A228A
tetradic
#8A7A22 #228A46 #22328A #8A2266
square
#8A7A22 #228A46 #22328A #8A2266
split-complementary
#8A7A22 #22668A #46228A
monochromatic
#28230A #594F16 #8A7A22 #BBA52E #D4C052

Accessibility & contrast

On white

4.30
#8A7A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A7A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A22
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A22#FFFFFF#000000##000000
##8A7A221.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867713
Deuteranopia (green-blind)
#8B7C28
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a22;
/* rgb */ color: rgb(138, 122, 34);
/* oklch */ color: oklch(57.8% 0.106 98.6);
Tailwind
colors: {
  custom: {
    50: '#b0a064',
    500: '#8a7a22',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a22;
$custom-light: #b0a064;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a22",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 50.769,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57796,
    "c": 0.10624,
    "h": 98.6
  },
  "luminance": 0.19438
}

Semantic roles & 50–950 ramp

primary
#8A7A22
secondary
#5060B8
accent
#5DE444
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A22

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

Preview Lab → · Contrast checker → · Palette generator →

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