#7B862A#7B862A

#7B862A is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.3% C 0.115 H 115.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7B862A
RGBrgb(123, 134, 42)
HSLhsl(67, 52%, 35%)
HSVhsv(67, 69%, 53%)
CMYKcmyk(8.2%, 0%, 68.7%, 47.5%)
CIE-LABlab(53.42, -16.88, 46.09)
CIE-LCHlch(53.42, 49.08, 110.11°)
OKLaboklab(59.26% -0.0504 0.1039)
OKLCHoklch(59.26% 0.115 115.9)
XYZxyz(17.1118, 21.4286, 5.4247)
Luminance0.2143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B862A #352A86
analogous
#86632A #7B862A #4D862A
triadic
#7B862A #2A7B86 #862A7B
tetradic
#7B862A #2A8663 #352A86 #862A4D
square
#7B862A #2A8663 #352A86 #862A4D
split-complementary
#7B862A #2A4D86 #632A86
monochromatic
#25290D #50571B #7B862A #A6B539 #BFCD5E

Accessibility & contrast

On white

3.97
#7B862A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#7B862A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B862A
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B862A#FFFFFF#000000##000000
##7B862A1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1D
Deuteranopia (green-blind)
#8F8031
Tritanopia (blue-blind)
#837E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b862a;
/* rgb */ color: rgb(123, 134, 42);
/* oklch */ color: oklch(59.3% 0.115 115.9);
Tailwind
colors: {
  custom: {
    50: '#a4a969',
    500: '#7b862a',
    950: '#000000',
  },
}
SCSS
$custom: #7b862a;
$custom-light: #a4a969;
$custom-dark: #000000;
JSON
{
  "hex": "#7b862a",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 67.174,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59261,
    "c": 0.11545,
    "h": 115.9
  },
  "luminance": 0.21428
}

Semantic roles & 50–950 ramp

primary
#7B862A
secondary
#645AB2
accent
#4CDC5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B862A

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

Preview Lab → · Contrast checker → · Palette generator →

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