#7B8A2E#7B8A2E

#7B8A2E is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 60.3% C 0.117 H 118.0°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7B8A2E
RGBrgb(123, 138, 46)
HSLhsl(70, 50%, 36%)
HSVhsv(70, 67%, 54%)
CMYKcmyk(10.9%, 0%, 66.7%, 45.9%)
CIE-LABlab(54.64, -18.70, 45.65)
CIE-LCHlch(54.64, 49.33, 112.27°)
OKLaboklab(60.26% -0.055 0.1036)
OKLCHoklch(60.26% 0.117 118)
XYZxyz(17.7503, 22.5853, 6.0086)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A2E #3D2E8A
analogous
#8A6B2E #7B8A2E #4D8A2E
triadic
#7B8A2E #2E7B8A #8A2E7B
tetradic
#7B8A2E #2E8A6B #3D2E8A #8A2E4D
square
#7B8A2E #2E8A6B #3D2E8A #8A2E4D
split-complementary
#7B8A2E #2E4D8A #6B2E8A
monochromatic
#292E0F #525C1F #7B8A2E #A4B83D #BCCC66

Accessibility & contrast

On white

3.81
#7B8A2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#7B8A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A2E
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A2E#FFFFFF#000000##000000
##7B8A2E1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938322
Deuteranopia (green-blind)
#918335
Tritanopia (blue-blind)
#828277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a2e;
/* rgb */ color: rgb(123, 138, 46);
/* oklch */ color: oklch(60.3% 0.117 118.0);
Tailwind
colors: {
  custom: {
    50: '#a4ac6c',
    500: '#7b8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a2e;
$custom-light: #a4ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a2e",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 69.783,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60256,
    "c": 0.11731,
    "h": 118
  },
  "luminance": 0.22585
}

Semantic roles & 50–950 ramp

primary
#7B8A2E
secondary
#6E61B3
accent
#4EDA65
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7B8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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