#7C7A42#7C7A42

#7C7A42 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.8% C 0.077 H 106.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7C7A42
RGBrgb(124, 122, 66)
HSLhsl(58, 31%, 37%)
HSVhsv(58, 47%, 49%)
CMYKcmyk(0%, 1.6%, 46.8%, 51.4%)
CIE-LABlab(50.21, -7.86, 30.79)
CIE-LCHlch(50.21, 31.78, 104.33°)
OKLaboklab(56.81% -0.0223 0.0739)
OKLCHoklch(56.81% 0.077 106.8)
XYZxyz(16.2554, 18.5979, 7.8867)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7A42 #42447C
analogous
#7C5D42 #7C7A42 #617C42
triadic
#7C7A42 #427C7A #7A427C
tetradic
#7C7A42 #427C5D #42447C #7C4261
square
#7C7A42 #427C5D #42447C #7C4261
split-complementary
#7C7A42 #42617C #5D427C
monochromatic
#2C2B17 #54532D #7C7A42 #A4A157 #BAB87E

Accessibility & contrast

On white

4.45
#7C7A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7C7A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7A42
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7A42#FFFFFF#000000##000000
##7C7A421.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#82763D
Deuteranopia (green-blind)
#847945
Tritanopia (blue-blind)
#83746D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7c7a42;
/* rgb */ color: rgb(124, 122, 66);
/* oklch */ color: oklch(56.8% 0.077 106.8);
Tailwind
colors: {
  custom: {
    50: '#a3a077',
    500: '#7c7a42',
    950: '#000000',
  },
}
SCSS
$custom: #7c7a42;
$custom-light: #a3a077;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7a42",
  "rgb": {
    "r": 124,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 57.931,
    "s": 30.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.56807,
    "c": 0.07716,
    "h": 106.8
  },
  "luminance": 0.18598
}

Semantic roles & 50–950 ramp

primary
#7C7A42
secondary
#7576A5
accent
#65C761
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #7C7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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