#7A7040#7A7040

#7A7040 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.3% C 0.068 H 97.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7A7040
RGBrgb(122, 112, 64)
HSLhsl(50, 31%, 36%)
HSVhsv(50, 48%, 48%)
CMYKcmyk(0%, 8.2%, 47.5%, 52.2%)
CIE-LABlab(47.10, -3.32, 27.99)
CIE-LCHlch(47.10, 28.19, 96.76°)
OKLaboklab(54.28% -0.0093 0.0675)
OKLCHoklch(54.28% 0.068 97.9)
XYZxyz(14.7460, 16.0966, 7.1797)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7040 #404A7A
analogous
#7A5340 #7A7040 #677A40
triadic
#7A7040 #407A70 #70407A
tetradic
#7A7040 #407A53 #404A7A #7A4067
square
#7A7040 #407A53 #404A7A #7A4067
split-complementary
#7A7040 #40677A #53407A
monochromatic
#2A2616 #524B2B #7A7040 #A29555 #BAAF7B

Accessibility & contrast

On white

4.98
#7A7040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7A7040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7040
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7040#FFFFFF#000000##FFFFFF
##7A70401.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#7B7142
Tritanopia (blue-blind)
#826A64
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a7040;
/* rgb */ color: rgb(122, 112, 64);
/* oklch */ color: oklch(54.3% 0.068 97.9);
Tailwind
colors: {
  custom: {
    50: '#a29876',
    500: '#7a7040',
    950: '#000000',
  },
}
SCSS
$custom: #7a7040;
$custom-light: #a29876;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7040",
  "rgb": {
    "r": 122,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 49.655,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.54284,
    "c": 0.06814,
    "h": 97.9
  },
  "luminance": 0.16096
}

Semantic roles & 50–950 ramp

primary
#7A7040
secondary
#727AA4
accent
#72C760
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0D08
muted
#7F7E7B

Preview Lab

Preview with #7A7040

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

Preview Lab → · Contrast checker → · Palette generator →

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