#7B8A2D#7B8A2D

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

Color values

HEX#7B8A2D
RGBrgb(123, 138, 45)
HSLhsl(70, 51%, 36%)
HSVhsv(70, 67%, 54%)
CMYKcmyk(10.9%, 0%, 67.4%, 45.9%)
CIE-LABlab(54.63, -18.77, 46.08)
CIE-LCHlch(54.63, 49.75, 112.16°)
OKLaboklab(60.25% -0.0553 0.1043)
OKLCHoklch(60.25% 0.118 117.9)
XYZxyz(17.7309, 22.5775, 5.9059)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A2D #3C2D8A
analogous
#8A6A2D #7B8A2D #4C8A2D
triadic
#7B8A2D #2D7B8A #8A2D7B
tetradic
#7B8A2D #2D8A6A #3C2D8A #8A2D4C
square
#7B8A2D #2D8A6A #3C2D8A #8A2D4C
split-complementary
#7B8A2D #2D4C8A #6A2D8A
monochromatic
#292E0F #525C1E #7B8A2D #A4B83C #BCCD65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A2D#FFFFFF#000000##000000
##7B8A2D1.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)
#938320
Deuteranopia (green-blind)
#928334
Tritanopia (blue-blind)
#828277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a2d;
/* rgb */ color: rgb(123, 138, 45);
/* oklch */ color: oklch(60.2% 0.118 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac6b',
    500: '#7b8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a2d;
$custom-light: #a4ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a2d",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 69.677,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60247,
    "c": 0.11809,
    "h": 117.9
  },
  "luminance": 0.22577
}

Semantic roles & 50–950 ramp

primary
#7B8A2D
secondary
#6D60B3
accent
#4DDA64
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7B8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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