#7D862D#7D862D

#7D862D 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#7D862D
RGBrgb(125, 134, 45)
HSLhsl(66, 50%, 35%)
HSVhsv(66, 66%, 53%)
CMYKcmyk(6.7%, 0%, 66.4%, 47.5%)
CIE-LABlab(53.60, -15.79, 45.04)
CIE-LCHlch(53.60, 47.73, 109.31°)
OKLaboklab(59.46% -0.0472 0.1021)
OKLCHoklch(59.46% 0.112 114.8)
XYZxyz(17.4566, 21.5999, 5.7317)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D862D #362D86
analogous
#86622D #7D862D #51862D
triadic
#7D862D #2D7D86 #862D7D
tetradic
#7D862D #2D8662 #362D86 #862D51
square
#7D862D #2D8662 #362D86 #862D51
split-complementary
#7D862D #2D5186 #622D86
monochromatic
#282A0E #52581E #7D862D #A8B43C #C0CB63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D862D#FFFFFF#000000##000000
##7D862D1.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)
#907F21
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#857E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d862d;
/* rgb */ color: rgb(125, 134, 45);
/* oklch */ color: oklch(59.5% 0.112 114.8);
Tailwind
colors: {
  custom: {
    50: '#a5a96b',
    500: '#7d862d',
    950: '#000000',
  },
}
SCSS
$custom: #7d862d;
$custom-light: #a5a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d862d",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 45
  },
  "hsl": {
    "h": 66.067,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.59456,
    "c": 0.11247,
    "h": 114.8
  },
  "luminance": 0.216
}

Semantic roles & 50–950 ramp

primary
#7D862D
secondary
#665EB1
accent
#4FD95D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D862D

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

Preview Lab → · Contrast checker → · Palette generator →

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