#7B8016#7B8016

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

Color values

HEX#7B8016
RGBrgb(123, 128, 22)
HSLhsl(63, 71%, 29%)
HSVhsv(63, 83%, 50%)
CMYKcmyk(3.9%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.51, -14.70, 51.50)
CIE-LCHlch(51.51, 53.56, 105.93°)
OKLaboklab(57.69% -0.0462 0.1117)
OKLCHoklch(57.69% 0.121 112.5)
XYZxyz(16.0329, 19.7076, 3.7183)
Luminance0.1971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8016 #1B1680
analogous
#805016 #7B8016 #468016
triadic
#7B8016 #167B80 #80167B
tetradic
#7B8016 #168050 #1B1680 #801646
square
#7B8016 #168050 #1B1680 #801646
split-complementary
#7B8016 #164680 #501680
monochromatic
#191A04 #494C0D #7B8016 #ADB41F #D4DC34

Accessibility & contrast

On white

4.25
#7B8016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7B8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8016
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8016#FFFFFF#000000##000000
##7B80161.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8016;
/* rgb */ color: rgb(123, 128, 22);
/* oklch */ color: oklch(57.7% 0.121 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a45f',
    500: '#7b8016',
    950: '#000000',
  },
}
SCSS
$custom: #7b8016;
$custom-light: #a5a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8016",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 62.83,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57691,
    "c": 0.12085,
    "h": 112.5
  },
  "luminance": 0.19707
}

Semantic roles & 50–950 ramp

primary
#7B8016
secondary
#433DB5
accent
#3AED43
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8016

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

Preview Lab → · Contrast checker → · Palette generator →

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