#7D862E#7D862E

#7D862E is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.5% C 0.112 H 114.8°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7D862E
RGBrgb(125, 134, 46)
HSLhsl(66, 49%, 35%)
HSVhsv(66, 66%, 53%)
CMYKcmyk(6.7%, 0%, 65.7%, 47.5%)
CIE-LABlab(53.61, -15.72, 44.61)
CIE-LCHlch(53.61, 47.30, 109.41°)
OKLaboklab(59.47% -0.0468 0.1013)
OKLCHoklch(59.47% 0.112 114.8)
XYZxyz(17.4761, 21.6077, 5.8343)
Luminance0.2161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D862E #372E86
analogous
#86632E #7D862E #51862E
triadic
#7D862E #2E7D86 #862E7D
tetradic
#7D862E #2E8663 #372E86 #862E51
square
#7D862E #2E8663 #372E86 #862E51
split-complementary
#7D862E #2E5186 #632E86
monochromatic
#282B0F #52581E #7D862E #A8B43E #C0CA64

Accessibility & contrast

On white

3.95
#7D862E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7D862E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D862E
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D862E#FFFFFF#000000##000000
##7D862E1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#8F8134
Tritanopia (blue-blind)
#857E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d862e;
/* rgb */ color: rgb(125, 134, 46);
/* oklch */ color: oklch(59.5% 0.112 114.8);
Tailwind
colors: {
  custom: {
    50: '#a5a96b',
    500: '#7d862e',
    950: '#000000',
  },
}
SCSS
$custom: #7d862e;
$custom-light: #a5a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d862e",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 66.136,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59466,
    "c": 0.11165,
    "h": 114.8
  },
  "luminance": 0.21607
}

Semantic roles & 50–950 ramp

primary
#7D862E
secondary
#675FB1
accent
#4FD85D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D862E

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

Preview Lab → · Contrast checker → · Palette generator →

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