#7B8F17#7B8F17

#7B8F17 is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.3% C 0.137 H 119.4°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7B8F17
RGBrgb(123, 143, 23)
HSLhsl(70, 72%, 33%)
HSVhsv(70, 84%, 56%)
CMYKcmyk(14%, 0%, 83.9%, 43.9%)
CIE-LABlab(56.01, -22.46, 55.15)
CIE-LCHlch(56.01, 59.55, 112.16°)
OKLaboklab(61.31% -0.0675 0.1197)
OKLCHoklch(61.31% 0.137 119.4)
XYZxyz(18.1459, 23.9178, 4.4711)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8F17 #2B178F
analogous
#8F6717 #7B8F17 #3F8F17
triadic
#7B8F17 #177B8F #8F177B
tetradic
#7B8F17 #178F67 #2B178F #8F173F
square
#7B8F17 #178F67 #2B178F #8F173F
split-complementary
#7B8F17 #173F8F #67178F
monochromatic
#202606 #4E5A0F #7B8F17 #A8C41F #C6E040

Accessibility & contrast

On white

3.63
#7B8F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7B8F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8F17
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8F17#FFFFFF#000000##000000
##7B8F171.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968724
Tritanopia (blue-blind)
#83877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7b8f17;
/* rgb */ color: rgb(123, 143, 23);
/* oklch */ color: oklch(61.3% 0.137 119.4);
Tailwind
colors: {
  custom: {
    50: '#a5af61',
    500: '#7b8f17',
    950: '#000000',
  },
}
SCSS
$custom: #7b8f17;
$custom-light: #a5af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8f17",
  "rgb": {
    "r": 123,
    "g": 143,
    "b": 23
  },
  "hsl": {
    "h": 70,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61309,
    "c": 0.13739,
    "h": 119.4
  },
  "luminance": 0.23918
}

Semantic roles & 50–950 ramp

primary
#7B8F17
secondary
#5641C1
accent
#39EF57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8F17

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

Preview Lab → · Contrast checker → · Palette generator →

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