#7B8916#7B8916

#7B8916 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.9% C 0.131 H 116.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7B8916
RGBrgb(123, 137, 22)
HSLhsl(67, 72%, 31%)
HSVhsv(67, 84%, 54%)
CMYKcmyk(10.2%, 0%, 83.9%, 46.3%)
CIE-LABlab(54.20, -19.43, 53.85)
CIE-LCHlch(54.20, 57.25, 109.85°)
OKLaboklab(59.85% -0.0593 0.1167)
OKLCHoklch(59.85% 0.131 116.9)
XYZxyz(17.2593, 22.1604, 4.1271)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8916 #241689
analogous
#895D16 #7B8916 #418916
triadic
#7B8916 #167B89 #89167B
tetradic
#7B8916 #16895D #241689 #891641
square
#7B8916 #16895D #241689 #891641
split-complementary
#7B8916 #164189 #5D1689
monochromatic
#1C2005 #4C540E #7B8916 #AABE1E #CBDF3A

Accessibility & contrast

On white

3.87
#7B8916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7B8916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8916
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8916#FFFFFF#000000##000000
##7B89161.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928222
Tritanopia (blue-blind)
#838175
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8916;
/* rgb */ color: rgb(123, 137, 22);
/* oklch */ color: oklch(59.9% 0.131 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ab60',
    500: '#7b8916',
    950: '#000000',
  },
}
SCSS
$custom: #7b8916;
$custom-light: #a5ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8916",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 67.304,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59851,
    "c": 0.13088,
    "h": 116.9
  },
  "luminance": 0.2216
}

Semantic roles & 50–950 ramp

primary
#7B8916
secondary
#4D3EBD
accent
#39EF4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8916

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

Preview Lab → · Contrast checker → · Palette generator →

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