#7B801F#7B801F

#7B801F is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.116 H 112.5°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7B801F
RGBrgb(123, 128, 31)
HSLhsl(63, 61%, 31%)
HSVhsv(63, 76%, 50%)
CMYKcmyk(3.9%, 0%, 75.8%, 49.8%)
CIE-LABlab(51.55, -14.32, 48.58)
CIE-LCHlch(51.55, 50.65, 106.42°)
OKLaboklab(57.74% -0.0444 0.1072)
OKLCHoklch(57.74% 0.116 112.5)
XYZxyz(16.1354, 19.7486, 4.2579)
Luminance0.1975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B801F #241F80
analogous
#80541F #7B801F #4A801F
triadic
#7B801F #1F7B80 #801F7B
tetradic
#7B801F #1F8054 #241F80 #801F4A
square
#7B801F #1F8054 #241F80 #801F4A
split-complementary
#7B801F #1F4A80 #541F80
monochromatic
#1C1D07 #4C4F13 #7B801F #AAB12B #CBD247

Accessibility & contrast

On white

4.24
#7B801F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#7B801F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B801F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B801F#FFFFFF#000000##000000
##7B801F1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0B
Deuteranopia (green-blind)
#8A7C27
Tritanopia (blue-blind)
#84786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b801f;
/* rgb */ color: rgb(123, 128, 31);
/* oklch */ color: oklch(57.7% 0.116 112.5);
Tailwind
colors: {
  custom: {
    50: '#a4a463',
    500: '#7b801f',
    950: '#000000',
  },
}
SCSS
$custom: #7b801f;
$custom-light: #a4a463;
$custom-dark: #000000;
JSON
{
  "hex": "#7b801f",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 63.093,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.57743,
    "c": 0.11599,
    "h": 112.5
  },
  "luminance": 0.19748
}

Semantic roles & 50–950 ramp

primary
#7B801F
secondary
#4D48B3
accent
#44E44C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7B801F

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

Preview Lab → · Contrast checker → · Palette generator →

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