#7C8342#7C8342

#7C8342 is a mid, moderate yellow. Relative luminance 0.209; OKLCH L 58.9% C 0.089 H 114.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7C8342
RGBrgb(124, 131, 66)
HSLhsl(66, 33%, 39%)
HSVhsv(66, 50%, 51%)
CMYKcmyk(5.3%, 0%, 49.6%, 48.6%)
CIE-LABlab(52.85, -12.81, 34.00)
CIE-LCHlch(52.85, 36.34, 110.64°)
OKLaboklab(58.91% -0.0364 0.081)
OKLCHoklch(58.91% 0.089 114.2)
XYZxyz(17.4121, 20.9113, 8.2722)
Luminance0.2091 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8342 #494283
analogous
#836942 #7C8342 #5B8342
triadic
#7C8342 #427C83 #83427C
tetradic
#7C8342 #428369 #494283 #83425B
square
#7C8342 #428369 #494283 #83425B
split-complementary
#7C8342 #425B83 #694283
monochromatic
#2F3219 #555A2D #7C8342 #A2AB58 #B8BF80

Accessibility & contrast

On white

4.05
#7C8342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#7C8342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8342
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8342#FFFFFF#000000##000000
##7C83421.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7E3C
Deuteranopia (green-blind)
#8B7F45
Tritanopia (blue-blind)
#837D74
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c8342;
/* rgb */ color: rgb(124, 131, 66);
/* oklch */ color: oklch(58.9% 0.089 114.2);
Tailwind
colors: {
  custom: {
    50: '#a3a778',
    500: '#7c8342',
    950: '#000000',
  },
}
SCSS
$custom: #7c8342;
$custom-light: #a3a778;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8342",
  "rgb": {
    "r": 124,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 66.462,
    "s": 32.995,
    "l": 38.627
  },
  "oklch": {
    "l": 0.58909,
    "c": 0.08878,
    "h": 114.2
  },
  "luminance": 0.20911
}

Semantic roles & 50–950 ramp

primary
#7C8342
secondary
#7C77AA
accent
#5FC96A
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #7C8342

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

Preview Lab → · Contrast checker → · Palette generator →

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