#7C9D2B#7C9D2B

#7C9D2B is a light, vivid yellow-green. Relative luminance 0.286; OKLCH L 64.9% C 0.143 H 124.5°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7C9D2B
RGBrgb(124, 157, 43)
HSLhsl(77, 57%, 39%)
HSVhsv(77, 73%, 62%)
CMYKcmyk(21%, 0%, 72.6%, 38.4%)
CIE-LABlab(60.40, -27.99, 52.75)
CIE-LCHlch(60.40, 59.72, 117.95°)
OKLaboklab(64.91% -0.0811 0.118)
OKLCHoklch(64.91% 0.143 124.5)
XYZxyz(20.8054, 28.5732, 6.7041)
Luminance0.2857 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C9D2B #4C2B9D
analogous
#9D852B #7C9D2B #439D2B
triadic
#7C9D2B #2B7C9D #9D2B7C
tetradic
#7C9D2B #2B9D85 #4C2B9D #9D2B43
square
#7C9D2B #2B9D85 #4C2B9D #9D2B43
split-complementary
#7C9D2B #2B439D #852B9D
monochromatic
#303D11 #566D1E #7C9D2B #A0CA3C #B8D76C

Accessibility & contrast

On white

3.13
#7C9D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#7C9D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C9D2B
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C9D2B#FFFFFF#000000##000000
##7C9D2B1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A69317
Deuteranopia (green-blind)
#A19135
Tritanopia (blue-blind)
#829587
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #7c9d2b;
/* rgb */ color: rgb(124, 157, 43);
/* oklch */ color: oklch(64.9% 0.143 124.5);
Tailwind
colors: {
  custom: {
    50: '#a5ba6c',
    500: '#7c9d2b',
    950: '#000000',
  },
}
SCSS
$custom: #7c9d2b;
$custom-light: #a5ba6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c9d2b",
  "rgb": {
    "r": 124,
    "g": 157,
    "b": 43
  },
  "hsl": {
    "h": 77.368,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.64912,
    "c": 0.14319,
    "h": 124.5
  },
  "luminance": 0.28573
}

Semantic roles & 50–950 ramp

primary
#7C9D2B
secondary
#8066BD
accent
#48E074
background
#FAFBF6
surface
#F4F6EC
border
#CED0C7
text
#101107
muted
#7F807A

Preview Lab

Preview with #7C9D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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