#7B8D1A#7B8D1A

#7B8D1A is a mid, vivid yellow. Relative luminance 0.233; OKLCH L 60.8% C 0.134 H 118.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#7B8D1A
RGBrgb(123, 141, 26)
HSLhsl(69, 69%, 33%)
HSVhsv(69, 82%, 55%)
CMYKcmyk(12.8%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.42, -21.34, 53.78)
CIE-LCHlch(55.42, 57.86, 111.64°)
OKLaboklab(60.84% -0.0642 0.1173)
OKLCHoklch(60.84% 0.134 118.7)
XYZxyz(17.8801, 23.3354, 4.5393)
Luminance0.2334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8D1A #2C1A8D
analogous
#8D651A #7B8D1A #428D1A
triadic
#7B8D1A #1A7B8D #8D1A7B
tetradic
#7B8D1A #1A8D65 #2C1A8D #8D1A42
square
#7B8D1A #1A8D65 #2C1A8D #8D1A42
split-complementary
#7B8D1A #1A428D #651A8D
monochromatic
#212607 #4E5910 #7B8D1A #A8C124 #C5DD45

Accessibility & contrast

On white

3.71
#7B8D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#7B8D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8D1A
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8D1A#FFFFFF#000000##000000
##7B8D1A1.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#838578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8d1a;
/* rgb */ color: rgb(123, 141, 26);
/* oklch */ color: oklch(60.8% 0.134 118.7);
Tailwind
colors: {
  custom: {
    50: '#a5ae62',
    500: '#7b8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7b8d1a;
$custom-light: #a5ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8d1a",
  "rgb": {
    "r": 123,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 69.391,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60838,
    "c": 0.1337,
    "h": 118.7
  },
  "luminance": 0.23335
}

Semantic roles & 50–950 ramp

primary
#7B8D1A
secondary
#5845BE
accent
#3CEC58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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