#7C7F40#7C7F40

#7C7F40 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.086 H 111.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7C7F40
RGBrgb(124, 127, 64)
HSLhsl(63, 33%, 37%)
HSVhsv(63, 50%, 50%)
CMYKcmyk(2.4%, 0%, 49.6%, 50.2%)
CIE-LABlab(51.65, -10.84, 33.60)
CIE-LCHlch(51.65, 35.31, 107.87°)
OKLaboklab(57.94% -0.031 0.0799)
OKLCHoklch(57.94% 0.086 111.2)
XYZxyz(16.8273, 19.8343, 7.7915)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7F40 #43407F
analogous
#7F6240 #7C7F40 #5D7F40
triadic
#7C7F40 #407C7F #7F407C
tetradic
#7C7F40 #407F62 #43407F #7F405D
square
#7C7F40 #407F62 #43407F #7F405D
split-complementary
#7C7F40 #405D7F #62407F
monochromatic
#2D2E17 #54562B #7C7F40 #A4A855 #BABD7C

Accessibility & contrast

On white

4.23
#7C7F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7C7F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7F40
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7F40#FFFFFF#000000##000000
##7C7F401.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#887C43
Tritanopia (blue-blind)
#837870
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c7f40;
/* rgb */ color: rgb(124, 127, 64);
/* oklch */ color: oklch(57.9% 0.086 111.2);
Tailwind
colors: {
  custom: {
    50: '#a3a476',
    500: '#7c7f40',
    950: '#000000',
  },
}
SCSS
$custom: #7c7f40;
$custom-light: #a3a476;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7f40",
  "rgb": {
    "r": 124,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 62.857,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.57941,
    "c": 0.08573,
    "h": 111.2
  },
  "luminance": 0.19834
}

Semantic roles & 50–950 ramp

primary
#7C7F40
secondary
#7673A8
accent
#5FC964
background
#FAFAF7
surface
#F4F3ED
border
#CECDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #7C7F40

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

Preview Lab → · Contrast checker → · Palette generator →

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