#7B8B2A#7B8B2A

#7B8B2A is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.122 H 118.3°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7B8B2A
RGBrgb(123, 139, 42)
HSLhsl(70, 54%, 35%)
HSVhsv(70, 70%, 55%)
CMYKcmyk(11.5%, 0%, 69.8%, 45.5%)
CIE-LABlab(54.91, -19.48, 47.62)
CIE-LCHlch(54.91, 51.45, 112.25°)
OKLaboklab(60.46% -0.0576 0.1071)
OKLCHoklch(60.46% 0.122 118.3)
XYZxyz(17.8193, 22.8435, 5.6606)
Luminance0.2284 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8B2A #3A2A8B
analogous
#8B6A2A #7B8B2A #4A8B2A
triadic
#7B8B2A #2A7B8B #8B2A7B
tetradic
#7B8B2A #2A8B6A #3A2A8B #8B2A4A
square
#7B8B2A #2A8B6A #3A2A8B #8B2A4A
split-complementary
#7B8B2A #2A4A8B #6A2A8B
monochromatic
#282D0E #515C1C #7B8B2A #A5BA38 #BDCF60

Accessibility & contrast

On white

3.77
#7B8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7B8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8B2A
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8B2A#FFFFFF#000000##000000
##7B8B2A1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831B
Deuteranopia (green-blind)
#938431
Tritanopia (blue-blind)
#828378
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8b2a;
/* rgb */ color: rgb(123, 139, 42);
/* oklch */ color: oklch(60.5% 0.122 118.3);
Tailwind
colors: {
  custom: {
    50: '#a4ac6a',
    500: '#7b8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #7b8b2a;
$custom-light: #a4ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8b2a",
  "rgb": {
    "r": 123,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 69.897,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60462,
    "c": 0.12161,
    "h": 118.3
  },
  "luminance": 0.22843
}

Semantic roles & 50–950 ramp

primary
#7B8B2A
secondary
#6B5CB5
accent
#4BDD63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7B8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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