#7B8F18#7B8F18

#7B8F18 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#7B8F18
RGBrgb(123, 143, 24)
HSLhsl(70, 71%, 33%)
HSVhsv(70, 83%, 56%)
CMYKcmyk(14%, 0%, 83.2%, 43.9%)
CIE-LABlab(56.01, -22.43, 54.88)
CIE-LCHlch(56.01, 59.28, 112.23°)
OKLaboklab(61.31% -0.0673 0.1193)
OKLCHoklch(61.31% 0.137 119.4)
XYZxyz(18.1561, 23.9219, 4.5249)
Luminance0.2392 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8F18 #2C188F
analogous
#8F6718 #7B8F18 #408F18
triadic
#7B8F18 #187B8F #8F187B
tetradic
#7B8F18 #188F67 #2C188F #8F1840
square
#7B8F18 #188F67 #2C188F #8F1840
split-complementary
#7B8F18 #18408F #67188F
monochromatic
#212606 #4E5B0F #7B8F18 #A8C321 #C5DF42

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8F18#FFFFFF#000000##000000
##7B8F181.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)
#968725
Tritanopia (blue-blind)
#83877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7b8f18;
/* rgb */ color: rgb(123, 143, 24);
/* oklch */ color: oklch(61.3% 0.137 119.4);
Tailwind
colors: {
  custom: {
    50: '#a5af62',
    500: '#7b8f18',
    950: '#000000',
  },
}
SCSS
$custom: #7b8f18;
$custom-light: #a5af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8f18",
  "rgb": {
    "r": 123,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 70.084,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61314,
    "c": 0.13696,
    "h": 119.4
  },
  "luminance": 0.23922
}

Semantic roles & 50–950 ramp

primary
#7B8F18
secondary
#5843C0
accent
#3AEE58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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