#7B8A1A#7B8A1A

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

Color values

HEX#7B8A1A
RGBrgb(123, 138, 26)
HSLhsl(68, 68%, 32%)
HSVhsv(68, 81%, 54%)
CMYKcmyk(10.9%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.51, -19.80, 52.98)
CIE-LCHlch(54.51, 56.56, 110.49°)
OKLaboklab(60.11% -0.06 0.1156)
OKLCHoklch(60.11% 0.13 117.4)
XYZxyz(17.4438, 22.4627, 4.3939)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A1A #291A8A
analogous
#8A611A #7B8A1A #438A1A
triadic
#7B8A1A #1A7B8A #8A1A7B
tetradic
#7B8A1A #1A8A61 #291A8A #8A1A43
square
#7B8A1A #1A8A61 #291A8A #8A1A43
split-complementary
#7B8A1A #1A438A #611A8A
monochromatic
#1F2307 #4D5710 #7B8A1A #A9BD24 #C7DC43

Accessibility & contrast

On white

3.82
#7B8A1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A1A#FFFFFF#000000##000000
##7B8A1A1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8a1a;
/* rgb */ color: rgb(123, 138, 26);
/* oklch */ color: oklch(60.1% 0.130 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7b8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a1a;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a1a",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 68.036,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60113,
    "c": 0.13019,
    "h": 117.4
  },
  "luminance": 0.22462
}

Semantic roles & 50–950 ramp

primary
#7B8A1A
secondary
#5343BD
accent
#3DEB54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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