#7B7940#7B7940

#7B7940 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.5% C 0.078 H 106.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7B7940
RGBrgb(123, 121, 64)
HSLhsl(58, 32%, 37%)
HSVhsv(58, 48%, 48%)
CMYKcmyk(0%, 1.6%, 48%, 51.8%)
CIE-LABlab(49.81, -7.96, 31.35)
CIE-LCHlch(49.81, 32.34, 104.25°)
OKLaboklab(56.45% -0.0227 0.075)
OKLCHoklch(56.45% 0.078 106.9)
XYZxyz(15.9315, 18.2563, 7.5341)
Luminance0.1826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7940 #40427B
analogous
#7B5C40 #7B7940 #607B40
triadic
#7B7940 #407B79 #79407B
tetradic
#7B7940 #407B5C #40427B #7B4060
square
#7B7940 #407B5C #40427B #7B4060
split-complementary
#7B7940 #40607B #5C407B
monochromatic
#2A2A16 #53512B #7B7940 #A3A155 #BAB87B

Accessibility & contrast

On white

4.51
#7B7940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7B7940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7940
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7940#FFFFFF#000000##000000
##7B79401.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81753B
Deuteranopia (green-blind)
#837843
Tritanopia (blue-blind)
#82736C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b7940;
/* rgb */ color: rgb(123, 121, 64);
/* oklch */ color: oklch(56.5% 0.078 106.9);
Tailwind
colors: {
  custom: {
    50: '#a29f76',
    500: '#7b7940',
    950: '#000000',
  },
}
SCSS
$custom: #7b7940;
$custom-light: #a29f76;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7940",
  "rgb": {
    "r": 123,
    "g": 121,
    "b": 64
  },
  "hsl": {
    "h": 57.966,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.07833,
    "h": 106.9
  },
  "luminance": 0.18256
}

Semantic roles & 50–950 ramp

primary
#7B7940
secondary
#7274A5
accent
#64C860
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #7B7940

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

Preview Lab → · Contrast checker → · Palette generator →

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