#7B862B#7B862B

#7B862B 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#7B862B
RGBrgb(123, 134, 43)
HSLhsl(67, 51%, 35%)
HSVhsv(67, 68%, 53%)
CMYKcmyk(8.2%, 0%, 67.9%, 47.5%)
CIE-LABlab(53.42, -16.81, 45.67)
CIE-LCHlch(53.42, 48.67, 110.21°)
OKLaboklab(59.27% -0.0501 0.1032)
OKLCHoklch(59.27% 0.115 115.9)
XYZxyz(17.1299, 21.4358, 5.5202)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B862B #362B86
analogous
#86642B #7B862B #4D862B
triadic
#7B862B #2B7B86 #862B7B
tetradic
#7B862B #2B8664 #362B86 #862B4D
square
#7B862B #2B8664 #362B86 #862B4D
split-complementary
#7B862B #2B4D86 #642B86
monochromatic
#26290D #50581C #7B862B #A6B43A #BFCC60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B862B#FFFFFF#000000##000000
##7B862B1.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)
#8F7F1E
Deuteranopia (green-blind)
#8E8032
Tritanopia (blue-blind)
#837E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b862b;
/* rgb */ color: rgb(123, 134, 43);
/* oklch */ color: oklch(59.3% 0.115 115.9);
Tailwind
colors: {
  custom: {
    50: '#a4a96a',
    500: '#7b862b',
    950: '#000000',
  },
}
SCSS
$custom: #7b862b;
$custom-light: #a4a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b862b",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 67.253,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.5927,
    "c": 0.11467,
    "h": 115.9
  },
  "luminance": 0.21436
}

Semantic roles & 50–950 ramp

primary
#7B862B
secondary
#655BB2
accent
#4DDB5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B862B

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

Preview Lab → · Contrast checker → · Palette generator →

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