#7B8B1A#7B8B1A

#7B8B1A is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.131 H 117.9°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7B8B1A
RGBrgb(123, 139, 26)
HSLhsl(68, 68%, 32%)
HSVhsv(68, 81%, 55%)
CMYKcmyk(11.5%, 0%, 81.3%, 45.5%)
CIE-LABlab(54.81, -20.31, 53.25)
CIE-LCHlch(54.81, 56.99, 110.88°)
OKLaboklab(60.35% -0.0614 0.1161)
OKLCHoklch(60.35% 0.131 117.9)
XYZxyz(17.5879, 22.7510, 4.4419)
Luminance0.2275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8B1A #2A1A8B
analogous
#8B631A #7B8B1A #428B1A
triadic
#7B8B1A #1A7B8B #8B1A7B
tetradic
#7B8B1A #1A8B63 #2A1A8B #8B1A42
square
#7B8B1A #1A8B63 #2A1A8B #8B1A42
split-complementary
#7B8B1A #1A428B #631A8B
monochromatic
#202407 #4D5710 #7B8B1A #A9BF24 #C6DC43

Accessibility & contrast

On white

3.78
#7B8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8B1A#FFFFFF#000000##000000
##7B8B1A1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8b1a;
/* rgb */ color: rgb(123, 139, 26);
/* oklch */ color: oklch(60.4% 0.131 117.9);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7b8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #7b8b1a;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8b1a",
  "rgb": {
    "r": 123,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 68.496,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60354,
    "c": 0.13136,
    "h": 117.9
  },
  "luminance": 0.22751
}

Semantic roles & 50–950 ramp

primary
#7B8B1A
secondary
#5544BD
accent
#3CEB55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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