#7B862C#7B862C

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

Color values

HEX#7B862C
RGBrgb(123, 134, 44)
HSLhsl(67, 51%, 35%)
HSVhsv(67, 67%, 53%)
CMYKcmyk(8.2%, 0%, 67.2%, 47.5%)
CIE-LABlab(53.43, -16.74, 45.25)
CIE-LCHlch(53.43, 48.25, 110.30°)
OKLaboklab(59.28% -0.0498 0.1024)
OKLCHoklch(59.28% 0.114 115.9)
XYZxyz(17.1485, 21.4432, 5.6180)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B862C #372C86
analogous
#86642C #7B862C #4E862C
triadic
#7B862C #2C7B86 #862C7B
tetradic
#7B862C #2C8664 #372C86 #862C4E
square
#7B862C #2C8664 #372C86 #862C4E
split-complementary
#7B862C #2C4E86 #642C86
monochromatic
#262A0E #51581D #7B862C #A5B43B #BECB61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7b862c;
/* rgb */ color: rgb(123, 134, 44);
/* oklch */ color: oklch(59.3% 0.114 115.9);
Tailwind
colors: {
  custom: {
    50: '#a4a96a',
    500: '#7b862c',
    950: '#000000',
  },
}
SCSS
$custom: #7b862c;
$custom-light: #a4a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b862c",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 44
  },
  "hsl": {
    "h": 67.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59279,
    "c": 0.1139,
    "h": 115.9
  },
  "luminance": 0.21443
}

Semantic roles & 50–950 ramp

primary
#7B862C
secondary
#675CB1
accent
#4EDA5F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B862C

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

Preview Lab → · Contrast checker → · Palette generator →

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