#7B9828#7B9828

#7B9828 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.139 H 123.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7B9828
RGBrgb(123, 152, 40)
HSLhsl(76, 58%, 38%)
HSVhsv(76, 74%, 60%)
CMYKcmyk(19.1%, 0%, 73.7%, 40.4%)
CIE-LABlab(58.81, -26.15, 52.28)
CIE-LCHlch(58.81, 58.45, 116.57°)
OKLaboklab(63.6% -0.0762 0.1165)
OKLCHoklch(63.6% 0.139 123.2)
XYZxyz(19.7799, 26.8205, 6.1419)
Luminance0.2682 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B9828 #452898
analogous
#987D28 #7B9828 #439828
triadic
#7B9828 #287B98 #98287B
tetradic
#7B9828 #28987D #452898 #982843
square
#7B9828 #28987D #452898 #982843
split-complementary
#7B9828 #284398 #7D2898
monochromatic
#2D370F #54681B #7B9828 #A2C835 #B9D664

Accessibility & contrast

On white

3.30
#7B9828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#7B9828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B9828
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B9828#FFFFFF#000000##000000
##7B98281.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A18E13
Deuteranopia (green-blind)
#9D8D32
Tritanopia (blue-blind)
#819082
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7b9828;
/* rgb */ color: rgb(123, 152, 40);
/* oklch */ color: oklch(63.6% 0.139 123.2);
Tailwind
colors: {
  custom: {
    50: '#a4b66a',
    500: '#7b9828',
    950: '#000000',
  },
}
SCSS
$custom: #7b9828;
$custom-light: #a4b66a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b9828",
  "rgb": {
    "r": 123,
    "g": 152,
    "b": 40
  },
  "hsl": {
    "h": 75.536,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.63599,
    "c": 0.13927,
    "h": 123.2
  },
  "luminance": 0.26821
}

Semantic roles & 50–950 ramp

primary
#7B9828
secondary
#7860BC
accent
#46E26E
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101107
muted
#7F807A

Preview Lab

Preview with #7B9828

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

Preview Lab → · Contrast checker → · Palette generator →

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