#7B7840#7B7840

#7B7840 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.077 H 105.9°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7B7840
RGBrgb(123, 120, 64)
HSLhsl(57, 32%, 37%)
HSVhsv(57, 48%, 48%)
CMYKcmyk(0%, 2.4%, 48%, 51.8%)
CIE-LABlab(49.51, -7.40, 30.99)
CIE-LCHlch(49.51, 31.86, 103.43°)
OKLaboklab(56.22% -0.0211 0.0742)
OKLCHoklch(56.22% 0.077 105.9)
XYZxyz(15.8106, 18.0145, 7.4938)
Luminance0.1801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7840 #40437B
analogous
#7B5B40 #7B7840 #617B40
triadic
#7B7840 #407B78 #78407B
tetradic
#7B7840 #407B5B #40437B #7B4061
square
#7B7840 #407B5B #40437B #7B4061
split-complementary
#7B7840 #40617B #5B407B
monochromatic
#2A2916 #53512B #7B7840 #A39F55 #BAB77B

Accessibility & contrast

On white

4.56
#7B7840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7B7840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7840
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7840#FFFFFF#000000##000000
##7B78401.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#80743B
Deuteranopia (green-blind)
#827743
Tritanopia (blue-blind)
#83726B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b7840;
/* rgb */ color: rgb(123, 120, 64);
/* oklch */ color: oklch(56.2% 0.077 105.9);
Tailwind
colors: {
  custom: {
    50: '#a29e76',
    500: '#7b7840',
    950: '#000000',
  },
}
SCSS
$custom: #7b7840;
$custom-light: #a29e76;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7840",
  "rgb": {
    "r": 123,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 56.949,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.5622,
    "c": 0.07712,
    "h": 105.9
  },
  "luminance": 0.18014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B7840

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

Preview Lab → · Contrast checker → · Palette generator →

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