#7B981B#7B981B

#7B981B is a light, vivid yellow-green. Relative luminance 0.267; OKLCH L 63.5% C 0.146 H 122.7°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7B981B
RGBrgb(123, 152, 27)
HSLhsl(74, 70%, 35%)
HSVhsv(74, 82%, 60%)
CMYKcmyk(19.1%, 0%, 82.2%, 40.4%)
CIE-LABlab(58.74, -26.78, 56.45)
CIE-LCHlch(58.74, 62.48, 115.38°)
OKLaboklab(63.52% -0.079 0.1231)
OKLCHoklch(63.52% 0.146 122.7)
XYZxyz(19.5947, 26.7465, 5.1670)
Luminance0.2675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B981B #381B98
analogous
#98761B #7B981B #3D981B
triadic
#7B981B #1B7B98 #981B7B
tetradic
#7B981B #1B9876 #381B98 #981B3D
square
#7B981B #1B9876 #381B98 #981B3D
split-complementary
#7B981B #1B3D98 #761B98
monochromatic
#273009 #516412 #7B981B #A5CC24 #BEE04E

Accessibility & contrast

On white

3.31
#7B981B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#7B981B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B981B
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B981B#FFFFFF#000000##000000
##7B981B1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E00
Deuteranopia (green-blind)
#9E8D29
Tritanopia (blue-blind)
#829081
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b981b;
/* rgb */ color: rgb(123, 152, 27);
/* oklch */ color: oklch(63.5% 0.146 122.7);
Tailwind
colors: {
  custom: {
    50: '#a5b664',
    500: '#7b981b',
    950: '#000000',
  },
}
SCSS
$custom: #7b981b;
$custom-light: #a5b664;
$custom-dark: #000000;
JSON
{
  "hex": "#7b981b",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 27
  },
  "hsl": {
    "h": 73.92,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.63521,
    "c": 0.1463,
    "h": 122.7
  },
  "luminance": 0.26747
}

Semantic roles & 50–950 ramp

primary
#7B981B
secondary
#684DC2
accent
#3BED64
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7B981B

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

Preview Lab → · Contrast checker → · Palette generator →

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