#7D862A#7D862A

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

Color values

HEX#7D862A
RGBrgb(125, 134, 42)
HSLhsl(66, 52%, 35%)
HSVhsv(66, 69%, 53%)
CMYKcmyk(6.7%, 0%, 68.7%, 47.5%)
CIE-LABlab(53.58, -15.99, 46.30)
CIE-LCHlch(53.58, 48.99, 109.05°)
OKLaboklab(59.43% -0.048 0.1043)
OKLCHoklch(59.43% 0.115 114.7)
XYZxyz(17.4009, 21.5776, 5.4383)
Luminance0.2158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D862A #332A86
analogous
#86612A #7D862A #4F862A
triadic
#7D862A #2A7D86 #862A7D
tetradic
#7D862A #2A8661 #332A86 #862A4F
square
#7D862A #2A8661 #332A86 #862A4F
split-complementary
#7D862A #2A4F86 #612A86
monochromatic
#26290D #52571B #7D862A #A8B539 #C2CD5E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D862A#FFFFFF#000000##000000
##7D862A1.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)
#907F1D
Deuteranopia (green-blind)
#8F8131
Tritanopia (blue-blind)
#857E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7d862a;
/* rgb */ color: rgb(125, 134, 42);
/* oklch */ color: oklch(59.4% 0.115 114.7);
Tailwind
colors: {
  custom: {
    50: '#a5a969',
    500: '#7d862a',
    950: '#000000',
  },
}
SCSS
$custom: #7d862a;
$custom-light: #a5a969;
$custom-dark: #000000;
JSON
{
  "hex": "#7d862a",
  "rgb": {
    "r": 125,
    "g": 134,
    "b": 42
  },
  "hsl": {
    "h": 65.87,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.5943,
    "c": 0.1148,
    "h": 114.7
  },
  "luminance": 0.21577
}

Semantic roles & 50–950 ramp

primary
#7D862A
secondary
#625AB2
accent
#4CDC5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D862A

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

Preview Lab → · Contrast checker → · Palette generator →

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