#7F841E#7F841E

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

Color values

HEX#7F841E
RGBrgb(127, 132, 30)
HSLhsl(63, 63%, 32%)
HSVhsv(63, 77%, 52%)
CMYKcmyk(3.8%, 0%, 77.3%, 48.2%)
CIE-LABlab(53.07, -14.68, 50.48)
CIE-LCHlch(53.07, 52.57, 106.22°)
OKLaboklab(59.04% -0.0457 0.1109)
OKLCHoklch(59.04% 0.12 112.4)
XYZxyz(17.2386, 21.1087, 4.3943)
Luminance0.2111 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F841E #231E84
analogous
#84561E #7F841E #4C841E
triadic
#7F841E #1E7F84 #841E7F
tetradic
#7F841E #1E8456 #231E84 #841E4C
square
#7F841E #1E8456 #231E84 #841E4C
split-complementary
#7F841E #1E4C84 #561E84
monochromatic
#1F2007 #4F5213 #7F841E #AFB629 #CED547

Accessibility & contrast

On white

4.02
#7F841E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#7F841E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F841E
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F841E#FFFFFF#000000##000000
##7F841E1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E06
Deuteranopia (green-blind)
#8F8027
Tritanopia (blue-blind)
#887C71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7f841e;
/* rgb */ color: rgb(127, 132, 30);
/* oklch */ color: oklch(59.0% 0.120 112.4);
Tailwind
colors: {
  custom: {
    50: '#a7a763',
    500: '#7f841e',
    950: '#000000',
  },
}
SCSS
$custom: #7f841e;
$custom-light: #a7a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7f841e",
  "rgb": {
    "r": 127,
    "g": 132,
    "b": 30
  },
  "hsl": {
    "h": 62.941,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59038,
    "c": 0.1199,
    "h": 112.4
  },
  "luminance": 0.21108
}

Semantic roles & 50–950 ramp

primary
#7F841E
secondary
#4C47B7
accent
#42E64A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F841E

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

Preview Lab → · Contrast checker → · Palette generator →

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