#7C8142#7C8142

#7C8142 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.086 H 112.8°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7C8142
RGBrgb(124, 129, 66)
HSLhsl(65, 32%, 38%)
HSVhsv(65, 49%, 51%)
CMYKcmyk(3.9%, 0%, 48.8%, 49.4%)
CIE-LABlab(52.26, -11.72, 33.29)
CIE-LCHlch(52.26, 35.30, 109.39°)
OKLaboklab(58.44% -0.0333 0.0794)
OKLCHoklch(58.44% 0.086 112.8)
XYZxyz(17.1461, 20.3792, 8.1835)
Luminance0.2038 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8142 #474281
analogous
#816642 #7C8142 #5C8142
triadic
#7C8142 #427C81 #81427C
tetradic
#7C8142 #428166 #474281 #81425C
square
#7C8142 #428166 #474281 #81425C
split-complementary
#7C8142 #425C81 #664281
monochromatic
#2E3019 #55592D #7C8142 #A3A957 #B9BE80

Accessibility & contrast

On white

4.14
#7C8142 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7C8142 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8142
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8142#FFFFFF#000000##000000
##7C81421.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897C3D
Deuteranopia (green-blind)
#897D45
Tritanopia (blue-blind)
#837B72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8142;
/* rgb */ color: rgb(124, 129, 66);
/* oklch */ color: oklch(58.4% 0.086 112.8);
Tailwind
colors: {
  custom: {
    50: '#a3a578',
    500: '#7c8142',
    950: '#000000',
  },
}
SCSS
$custom: #7c8142;
$custom-light: #a3a578;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8142",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 66
  },
  "hsl": {
    "h": 64.762,
    "s": 32.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.58439,
    "c": 0.08611,
    "h": 112.8
  },
  "luminance": 0.20379
}

Semantic roles & 50–950 ramp

primary
#7C8142
secondary
#7A76A9
accent
#5FC868
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #7C8142

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

Preview Lab → · Contrast checker → · Palette generator →

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