#7A811F#7A811F

#7A811F is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.117 H 113.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7A811F
RGBrgb(122, 129, 31)
HSLhsl(64, 61%, 31%)
HSVhsv(64, 76%, 51%)
CMYKcmyk(5.4%, 0%, 76%, 49.4%)
CIE-LABlab(51.77, -15.31, 48.76)
CIE-LCHlch(51.77, 51.10, 107.43°)
OKLaboklab(57.89% -0.0471 0.1076)
OKLCHoklch(57.89% 0.117 113.6)
XYZxyz(16.1241, 19.9374, 4.2950)
Luminance0.1994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A811F #261F81
analogous
#81571F #7A811F #49811F
triadic
#7A811F #1F7A81 #811F7A
tetradic
#7A811F #1F8157 #261F81 #811F49
square
#7A811F #1F8157 #261F81 #811F49
split-complementary
#7A811F #1F4981 #571F81
monochromatic
#1D1E07 #4B5013 #7A811F #A9B22B #C9D347

Accessibility & contrast

On white

4.21
#7A811F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#7A811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A811F
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A811F#FFFFFF#000000##000000
##7A811F1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0A
Deuteranopia (green-blind)
#8B7C27
Tritanopia (blue-blind)
#82796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7a811f;
/* rgb */ color: rgb(122, 129, 31);
/* oklch */ color: oklch(57.9% 0.117 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a563',
    500: '#7a811f',
    950: '#000000',
  },
}
SCSS
$custom: #7a811f;
$custom-light: #a3a563;
$custom-dark: #000000;
JSON
{
  "hex": "#7a811f",
  "rgb": {
    "r": 122,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 64.286,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57894,
    "c": 0.11742,
    "h": 113.6
  },
  "luminance": 0.19937
}

Semantic roles & 50–950 ramp

primary
#7A811F
secondary
#5048B4
accent
#43E44F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #7A811F

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

Preview Lab → · Contrast checker → · Palette generator →

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