#7A862F#7A862F

#7A862F is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.112 H 116.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7A862F
RGBrgb(122, 134, 47)
HSLhsl(68, 48%, 35%)
HSVhsv(68, 65%, 53%)
CMYKcmyk(9%, 0%, 64.9%, 47.5%)
CIE-LABlab(53.38, -16.97, 43.85)
CIE-LCHlch(53.38, 47.02, 111.16°)
OKLaboklab(59.22% -0.0501 0.1)
OKLCHoklch(59.22% 0.112 116.6)
XYZxyz(17.0646, 21.3932, 5.9191)
Luminance0.2139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A862F #3B2F86
analogous
#86662F #7A862F #4E862F
triadic
#7A862F #2F7A86 #862F7A
tetradic
#7A862F #2F8666 #3B2F86 #862F4E
square
#7A862F #2F8666 #3B2F86 #862F4E
split-complementary
#7A862F #2F4E86 #662F86
monochromatic
#272B0F #51591F #7A862F #A3B33F #BCC966

Accessibility & contrast

On white

3.98
#7A862F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#7A862F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A862F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A862F#FFFFFF#000000##000000
##7A862F1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F24
Deuteranopia (green-blind)
#8E8035
Tritanopia (blue-blind)
#817F74
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7a862f;
/* rgb */ color: rgb(122, 134, 47);
/* oklch */ color: oklch(59.2% 0.112 116.6);
Tailwind
colors: {
  custom: {
    50: '#a3a96c',
    500: '#7a862f',
    950: '#000000',
  },
}
SCSS
$custom: #7a862f;
$custom-light: #a3a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#7a862f",
  "rgb": {
    "r": 122,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 68.276,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59224,
    "c": 0.11179,
    "h": 116.6
  },
  "luminance": 0.21393
}

Semantic roles & 50–950 ramp

primary
#7A862F
secondary
#6C60B0
accent
#50D863
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7A862F

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

Preview Lab → · Contrast checker → · Palette generator →

#7A862F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva