#7C7B40#7C7B40

#7C7B40 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.0% C 0.081 H 107.8°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7C7B40
RGBrgb(124, 123, 64)
HSLhsl(59, 32%, 37%)
HSVhsv(59, 48%, 49%)
CMYKcmyk(0%, 0.8%, 48.4%, 51.4%)
CIE-LABlab(50.48, -8.63, 32.19)
CIE-LCHlch(50.48, 33.33, 105.01°)
OKLaboklab(57.01% -0.0247 0.0768)
OKLCHoklch(57.01% 0.081 107.8)
XYZxyz(16.3209, 18.8216, 7.6227)
Luminance0.1882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7B40 #40417C
analogous
#7C5D40 #7C7B40 #5F7C40
triadic
#7C7B40 #407C7B #7B407C
tetradic
#7C7B40 #407C5D #40417C #7C405F
square
#7C7B40 #407C5D #40417C #7C405F
split-complementary
#7C7B40 #405F7C #5D407C
monochromatic
#2B2B16 #54532B #7C7B40 #A4A355 #BBBA7B

Accessibility & contrast

On white

4.41
#7C7B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7C7B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7B40
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7B40#FFFFFF#000000##000000
##7C7B401.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#83773B
Deuteranopia (green-blind)
#857943
Tritanopia (blue-blind)
#83746D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c7b40;
/* rgb */ color: rgb(124, 123, 64);
/* oklch */ color: oklch(57.0% 0.081 107.8);
Tailwind
colors: {
  custom: {
    50: '#a3a176',
    500: '#7c7b40',
    950: '#000000',
  },
}
SCSS
$custom: #7c7b40;
$custom-light: #a3a176;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7b40",
  "rgb": {
    "r": 124,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 59,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.57008,
    "c": 0.08068,
    "h": 107.8
  },
  "luminance": 0.18821
}

Semantic roles & 50–950 ramp

primary
#7C7B40
secondary
#7273A6
accent
#61C860
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #7C7B40

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

Preview Lab → · Contrast checker → · Palette generator →

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