#7B8B16#7B8B16

#7B8B16 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.3% C 0.133 H 117.8°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7B8B16
RGBrgb(123, 139, 22)
HSLhsl(68, 73%, 32%)
HSVhsv(68, 84%, 55%)
CMYKcmyk(11.5%, 0%, 84.2%, 45.5%)
CIE-LABlab(54.80, -20.46, 54.37)
CIE-LCHlch(54.80, 58.09, 110.63°)
OKLaboklab(60.34% -0.0621 0.1178)
OKLCHoklch(60.34% 0.133 117.8)
XYZxyz(17.5463, 22.7343, 4.2227)
Luminance0.2273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8B16 #26168B
analogous
#8B6116 #7B8B16 #418B16
triadic
#7B8B16 #167B8B #8B167B
tetradic
#7B8B16 #168B61 #26168B #8B1641
square
#7B8B16 #168B61 #26168B #8B1641
split-complementary
#7B8B16 #16418B #61168B
monochromatic
#1D2105 #4C560E #7B8B16 #AAC01E #CAE03B

Accessibility & contrast

On white

3.79
#7B8B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7B8B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8B16
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8B16#FFFFFF#000000##000000
##7B8B161.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938423
Tritanopia (blue-blind)
#838376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8b16;
/* rgb */ color: rgb(123, 139, 22);
/* oklch */ color: oklch(60.3% 0.133 117.8);
Tailwind
colors: {
  custom: {
    50: '#a5ac60',
    500: '#7b8b16',
    950: '#000000',
  },
}
SCSS
$custom: #7b8b16;
$custom-light: #a5ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8b16",
  "rgb": {
    "r": 123,
    "g": 139,
    "b": 22
  },
  "hsl": {
    "h": 68.205,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60335,
    "c": 0.13317,
    "h": 117.8
  },
  "luminance": 0.22734
}

Semantic roles & 50–950 ramp

primary
#7B8B16
secondary
#503EBF
accent
#38EF51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8B16

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

Preview Lab → · Contrast checker → · Palette generator →

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