#7B842E#7B842E

#7B842E is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.110 H 114.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7B842E
RGBrgb(123, 132, 46)
HSLhsl(66, 48%, 35%)
HSVhsv(66, 65%, 52%)
CMYKcmyk(6.8%, 0%, 65.2%, 48.2%)
CIE-LABlab(52.85, -15.54, 43.76)
CIE-LCHlch(52.85, 46.44, 109.55°)
OKLaboklab(58.82% -0.0462 0.0996)
OKLCHoklch(58.82% 0.11 114.9)
XYZxyz(16.9132, 20.9110, 5.7295)
Luminance0.2091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B842E #372E84
analogous
#84622E #7B842E #50842E
triadic
#7B842E #2E7B84 #842E7B
tetradic
#7B842E #2E8462 #372E84 #842E50
square
#7B842E #2E8462 #372E84 #842E50
split-complementary
#7B842E #2E5084 #622E84
monochromatic
#26290E #51571E #7B842E #A5B13E #BEC964

Accessibility & contrast

On white

4.05
#7B842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7B842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B842E
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B842E#FFFFFF#000000##000000
##7B842E1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D23
Deuteranopia (green-blind)
#8D7F34
Tritanopia (blue-blind)
#837C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7b842e;
/* rgb */ color: rgb(123, 132, 46);
/* oklch */ color: oklch(58.8% 0.110 114.9);
Tailwind
colors: {
  custom: {
    50: '#a4a76b',
    500: '#7b842e',
    950: '#000000',
  },
}
SCSS
$custom: #7b842e;
$custom-light: #a4a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b842e",
  "rgb": {
    "r": 123,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 66.279,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.5882,
    "c": 0.10981,
    "h": 114.9
  },
  "luminance": 0.20911
}

Semantic roles & 50–950 ramp

primary
#7B842E
secondary
#675EB0
accent
#50D85E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B842E

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

Preview Lab → · Contrast checker → · Palette generator →

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