#7D841F#7D841F

#7D841F is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.120 H 113.5°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7D841F
RGBrgb(125, 132, 31)
HSLhsl(64, 62%, 32%)
HSVhsv(64, 77%, 52%)
CMYKcmyk(5.3%, 0%, 76.5%, 48.2%)
CIE-LABlab(52.91, -15.54, 49.92)
CIE-LCHlch(52.91, 52.28, 107.29°)
OKLaboklab(58.87% -0.0479 0.1099)
OKLCHoklch(58.87% 0.12 113.5)
XYZxyz(16.9566, 20.9618, 4.4488)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D841F #261F84
analogous
#84581F #7D841F #4B841F
triadic
#7D841F #1F7D84 #841F7D
tetradic
#7D841F #1F8458 #261F84 #841F4B
square
#7D841F #1F8458 #261F84 #841F4B
split-complementary
#7D841F #1F4B84 #581F84
monochromatic
#1F2108 #4E5213 #7D841F #ACB62B #CBD449

Accessibility & contrast

On white

4.04
#7D841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7D841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D841F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D841F#FFFFFF#000000##000000
##7D841F1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D08
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#867C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7d841f;
/* rgb */ color: rgb(125, 132, 31);
/* oklch */ color: oklch(58.9% 0.120 113.5);
Tailwind
colors: {
  custom: {
    50: '#a6a763',
    500: '#7d841f',
    950: '#000000',
  },
}
SCSS
$custom: #7d841f;
$custom-light: #a6a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7d841f",
  "rgb": {
    "r": 125,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 64.158,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5887,
    "c": 0.11991,
    "h": 113.5
  },
  "luminance": 0.20961
}

Semantic roles & 50–950 ramp

primary
#7D841F
secondary
#5048B7
accent
#43E54E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7D841F

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

Preview Lab → · Contrast checker → · Palette generator →

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