#7D842E#7D842E

#7D842E is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.0% C 0.109 H 113.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7D842E
RGBrgb(125, 132, 46)
HSLhsl(65, 48%, 35%)
HSVhsv(65, 65%, 52%)
CMYKcmyk(5.3%, 0%, 65.2%, 48.2%)
CIE-LABlab(53.02, -14.65, 43.99)
CIE-LCHlch(53.02, 46.36, 108.42°)
OKLaboklab(58.99% -0.0439 0.1)
OKLCHoklch(58.99% 0.109 113.7)
XYZxyz(17.2023, 21.0601, 5.7430)
Luminance0.2106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D842E #352E84
analogous
#84602E #7D842E #52842E
triadic
#7D842E #2E7D84 #842E7D
tetradic
#7D842E #2E8460 #352E84 #842E52
square
#7D842E #2E8460 #352E84 #842E52
split-complementary
#7D842E #2E5284 #602E84
monochromatic
#27290E #52571E #7D842E #A8B13E #C1C964

Accessibility & contrast

On white

4.03
#7D842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7D842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D842E
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D842E#FFFFFF#000000##000000
##7D842E1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E23
Deuteranopia (green-blind)
#8D7F34
Tritanopia (blue-blind)
#857C72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7d842e;
/* rgb */ color: rgb(125, 132, 46);
/* oklch */ color: oklch(59.0% 0.109 113.7);
Tailwind
colors: {
  custom: {
    50: '#a5a76b',
    500: '#7d842e',
    950: '#000000',
  },
}
SCSS
$custom: #7d842e;
$custom-light: #a5a76b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d842e",
  "rgb": {
    "r": 125,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 64.884,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58991,
    "c": 0.10922,
    "h": 113.7
  },
  "luminance": 0.2106
}

Semantic roles & 50–950 ramp

primary
#7D842E
secondary
#655EB0
accent
#50D85B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7D842E

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

Preview Lab → · Contrast checker → · Palette generator →

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