#7E841F#7E841F

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

Color values

HEX#7E841F
RGBrgb(126, 132, 31)
HSLhsl(64, 62%, 32%)
HSVhsv(64, 77%, 52%)
CMYKcmyk(4.5%, 0%, 76.5%, 48.2%)
CIE-LABlab(52.99, -15.09, 50.03)
CIE-LCHlch(52.99, 52.26, 106.79°)
OKLaboklab(58.96% -0.0467 0.1101)
OKLCHoklch(58.96% 0.12 113)
XYZxyz(17.1033, 21.0375, 4.4557)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E841F #251F84
analogous
#84571F #7E841F #4C841F
triadic
#7E841F #1F7E84 #841F7E
tetradic
#7E841F #1F8457 #251F84 #841F4C
square
#7E841F #1F8457 #251F84 #841F4C
split-complementary
#7E841F #1F4C84 #571F84
monochromatic
#1F2108 #4F5213 #7E841F #ADB62B #CCD449

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E841F#FFFFFF#000000##000000
##7E841F1.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)
#8E7D08
Deuteranopia (green-blind)
#8E8027
Tritanopia (blue-blind)
#877C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7e841f;
/* rgb */ color: rgb(126, 132, 31);
/* oklch */ color: oklch(59.0% 0.120 113.0);
Tailwind
colors: {
  custom: {
    50: '#a6a763',
    500: '#7e841f',
    950: '#000000',
  },
}
SCSS
$custom: #7e841f;
$custom-light: #a6a763;
$custom-dark: #000000;
JSON
{
  "hex": "#7e841f",
  "rgb": {
    "r": 126,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 63.564,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.58957,
    "c": 0.11961,
    "h": 113
  },
  "luminance": 0.21037
}

Semantic roles & 50–950 ramp

primary
#7E841F
secondary
#4F48B7
accent
#43E54C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7E841F

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

Preview Lab → · Contrast checker → · Palette generator →

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