#7D862F#7D862F

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

Color values

HEX#7D862F
RGBrgb(125, 134, 47)
HSLhsl(66, 48%, 35%)
HSVhsv(66, 65%, 53%)
CMYKcmyk(6.7%, 0%, 64.9%, 47.5%)
CIE-LABlab(53.62, -15.65, 44.18)
CIE-LCHlch(53.62, 46.87, 109.50°)
OKLaboklab(59.48% -0.0465 0.1006)
OKLCHoklch(59.48% 0.111 114.8)
XYZxyz(17.4960, 21.6157, 5.9393)
Luminance0.2162 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D862F #382F86
analogous
#86632F #7D862F #51862F
triadic
#7D862F #2F7D86 #862F7D
tetradic
#7D862F #2F8663 #382F86 #862F51
square
#7D862F #2F8663 #382F86 #862F51
split-complementary
#7D862F #2F5186 #632F86
monochromatic
#282B0F #53591F #7D862F #A7B33F #BFC966

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D862F#FFFFFF#000000##000000
##7D862F1.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)
#8F7F24
Deuteranopia (green-blind)
#8F8135
Tritanopia (blue-blind)
#857E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d862f;
/* rgb */ color: rgb(125, 134, 47);
/* oklch */ color: oklch(59.5% 0.111 114.8);
Tailwind
colors: {
  custom: {
    50: '#a5a96c',
    500: '#7d862f',
    950: '#000000',
  },
}
SCSS
$custom: #7d862f;
$custom-light: #a5a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d862f",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 66.207,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59475,
    "c": 0.11083,
    "h": 114.8
  },
  "luminance": 0.21615
}

Semantic roles & 50–950 ramp

primary
#7D862F
secondary
#6960B0
accent
#50D85E
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D862F

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

Preview Lab → · Contrast checker → · Palette generator →

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