#7B8A16#7B8A16

#7B8A16 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.1% C 0.132 H 117.4°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7B8A16
RGBrgb(123, 138, 22)
HSLhsl(68, 73%, 31%)
HSVhsv(68, 84%, 54%)
CMYKcmyk(10.9%, 0%, 84.1%, 45.9%)
CIE-LABlab(54.50, -19.95, 54.11)
CIE-LCHlch(54.50, 57.67, 110.24°)
OKLaboklab(60.09% -0.0607 0.1173)
OKLCHoklch(60.09% 0.132 117.4)
XYZxyz(17.4021, 22.4460, 4.1747)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A16 #25168A
analogous
#8A5F16 #7B8A16 #418A16
triadic
#7B8A16 #167B8A #8A167B
tetradic
#7B8A16 #168A5F #25168A #8A1641
square
#7B8A16 #168A5F #25168A #8A1641
split-complementary
#7B8A16 #16418A #5F168A
monochromatic
#1D2005 #4C550E #7B8A16 #AABF1E #CAE03B

Accessibility & contrast

On white

3.83
#7B8A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7B8A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A16
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A16#FFFFFF#000000##000000
##7B8A161.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#838275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8a16;
/* rgb */ color: rgb(123, 138, 22);
/* oklch */ color: oklch(60.1% 0.132 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac60',
    500: '#7b8a16',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a16;
$custom-light: #a5ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a16",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 67.759,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.60093,
    "c": 0.13203,
    "h": 117.4
  },
  "luminance": 0.22446
}

Semantic roles & 50–950 ramp

primary
#7B8A16
secondary
#4F3EBE
accent
#39EF50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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