#7B8A2A#7B8A2A

#7B8A2A is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.120 H 117.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7B8A2A
RGBrgb(123, 138, 42)
HSLhsl(69, 53%, 35%)
HSVhsv(69, 70%, 54%)
CMYKcmyk(10.9%, 0%, 69.6%, 45.9%)
CIE-LABlab(54.61, -18.97, 47.31)
CIE-LCHlch(54.61, 50.97, 111.84°)
OKLaboklab(60.22% -0.0562 0.1064)
OKLCHoklch(60.22% 0.12 117.8)
XYZxyz(17.6751, 22.5553, 5.6125)
Luminance0.2256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A2A #392A8A
analogous
#8A692A #7B8A2A #4B8A2A
triadic
#7B8A2A #2A7B8A #8A2A7B
tetradic
#7B8A2A #2A8A69 #392A8A #8A2A4B
square
#7B8A2A #2A8A69 #392A8A #8A2A4B
split-complementary
#7B8A2A #2A4B8A #692A8A
monochromatic
#272C0D #515B1C #7B8A2A #A5B938 #BDCF60

Accessibility & contrast

On white

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

On black

5.51
#7B8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A2A
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A2A#FFFFFF#000000##000000
##7B8A2A1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#93821C
Deuteranopia (green-blind)
#928331
Tritanopia (blue-blind)
#828277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a2a;
/* rgb */ color: rgb(123, 138, 42);
/* oklch */ color: oklch(60.2% 0.120 117.8);
Tailwind
colors: {
  custom: {
    50: '#a4ac6a',
    500: '#7b8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a2a;
$custom-light: #a4ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a2a",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 69.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60221,
    "c": 0.12037,
    "h": 117.8
  },
  "luminance": 0.22555
}

Semantic roles & 50–950 ramp

primary
#7B8A2A
secondary
#695BB4
accent
#4BDD62
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7B8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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