#7B8E1C#7B8E1C

#7B8E1C is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.1% C 0.134 H 119.1°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7B8E1C
RGBrgb(123, 142, 28)
HSLhsl(70, 67%, 33%)
HSVhsv(70, 80%, 56%)
CMYKcmyk(13.4%, 0%, 80.3%, 44.3%)
CIE-LABlab(55.73, -21.76, 53.46)
CIE-LCHlch(55.73, 57.72, 112.15°)
OKLaboklab(61.09% -0.0652 0.1169)
OKLCHoklch(61.09% 0.134 119.1)
XYZxyz(18.0514, 23.6409, 4.7106)
Luminance0.2364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8E1C #2F1C8E
analogous
#8E681C #7B8E1C #428E1C
triadic
#7B8E1C #1C7B8E #8E1C7B
tetradic
#7B8E1C #1C8E68 #2F1C8E #8E1C42
square
#7B8E1C #1C8E68 #2F1C8E #8E1C42
split-complementary
#7B8E1C #1C428E #681C8E
monochromatic
#222808 #4F5B12 #7B8E1C #A7C126 #C3DB49

Accessibility & contrast

On white

3.67
#7B8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7B8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8E1C
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8E1C#FFFFFF#000000##000000
##7B8E1C1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#838679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8e1c;
/* rgb */ color: rgb(123, 142, 28);
/* oklch */ color: oklch(61.1% 0.134 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af63',
    500: '#7b8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #7b8e1c;
$custom-light: #a5af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8e1c",
  "rgb": {
    "r": 123,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 70,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61091,
    "c": 0.13389,
    "h": 119.1
  },
  "luminance": 0.23641
}

Semantic roles & 50–950 ramp

primary
#7B8E1C
secondary
#5C49BD
accent
#3EEA5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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