#7C8137#7C8137

#7C8137 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.098 H 112.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7C8137
RGBrgb(124, 129, 55)
HSLhsl(64, 40%, 36%)
HSVhsv(64, 57%, 51%)
CMYKcmyk(3.9%, 0%, 57.4%, 49.4%)
CIE-LABlab(52.13, -12.78, 38.76)
CIE-LCHlch(52.13, 40.81, 108.24°)
OKLaboklab(58.29% -0.0375 0.0902)
OKLCHoklch(58.29% 0.098 112.6)
XYZxyz(16.8524, 20.2618, 6.6368)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8137 #3C3781
analogous
#816137 #7C8137 #578137
triadic
#7C8137 #377C81 #81377C
tetradic
#7C8137 #378161 #3C3781 #813757
square
#7C8137 #378161 #3C3781 #813757
split-complementary
#7C8137 #375781 #613781
monochromatic
#2A2B12 #535625 #7C8137 #A5AC49 #BDC270

Accessibility & contrast

On white

4.16
#7C8137 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7C8137 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8137
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8137#FFFFFF#000000##000000
##7C81371.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B2F
Deuteranopia (green-blind)
#8A7D3B
Tritanopia (blue-blind)
#847A71
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8137;
/* rgb */ color: rgb(124, 129, 55);
/* oklch */ color: oklch(58.3% 0.098 112.6);
Tailwind
colors: {
  custom: {
    50: '#a4a571',
    500: '#7c8137',
    950: '#000000',
  },
}
SCSS
$custom: #7c8137;
$custom-light: #a4a571;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8137",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 55
  },
  "hsl": {
    "h": 64.054,
    "s": 40.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58292,
    "c": 0.09765,
    "h": 112.6
  },
  "luminance": 0.20261
}

Semantic roles & 50–950 ramp

primary
#7C8137
secondary
#6D69AB
accent
#58D060
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #7C8137

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

Preview Lab → · Contrast checker → · Palette generator →

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