#7B811F#7B811F

#7B811F is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.117 H 113.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7B811F
RGBrgb(123, 129, 31)
HSLhsl(64, 61%, 31%)
HSVhsv(64, 76%, 51%)
CMYKcmyk(4.7%, 0%, 76%, 49.4%)
CIE-LABlab(51.85, -14.85, 48.87)
CIE-LCHlch(51.85, 51.07, 106.91°)
OKLaboklab(57.98% -0.0459 0.1078)
OKLCHoklch(57.98% 0.117 113.1)
XYZxyz(16.2665, 20.0108, 4.3016)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B811F #251F81
analogous
#81561F #7B811F #4A811F
triadic
#7B811F #1F7B81 #811F7B
tetradic
#7B811F #1F8156 #251F81 #811F4A
square
#7B811F #1F8156 #251F81 #811F4A
split-complementary
#7B811F #1F4A81 #561F81
monochromatic
#1D1E07 #4C5013 #7B811F #AAB22B #CAD347

Accessibility & contrast

On white

4.20
#7B811F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7B811F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B811F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B811F#FFFFFF#000000##000000
##7B811F1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B0A
Deuteranopia (green-blind)
#8B7D27
Tritanopia (blue-blind)
#84796E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7b811f;
/* rgb */ color: rgb(123, 129, 31);
/* oklch */ color: oklch(58.0% 0.117 113.1);
Tailwind
colors: {
  custom: {
    50: '#a4a563',
    500: '#7b811f',
    950: '#000000',
  },
}
SCSS
$custom: #7b811f;
$custom-light: #a4a563;
$custom-dark: #000000;
JSON
{
  "hex": "#7b811f",
  "rgb": {
    "r": 123,
    "g": 129,
    "b": 31
  },
  "hsl": {
    "h": 63.673,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57981,
    "c": 0.11712,
    "h": 113.1
  },
  "luminance": 0.2001
}

Semantic roles & 50–950 ramp

primary
#7B811F
secondary
#4F48B4
accent
#43E44D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B811F

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

Preview Lab → · Contrast checker → · Palette generator →

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