#7A7E42#7A7E42

#7A7E42 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.083 H 112.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7A7E42
RGBrgb(122, 126, 66)
HSLhsl(64, 31%, 38%)
HSVhsv(64, 48%, 49%)
CMYKcmyk(3.2%, 0%, 47.6%, 50.6%)
CIE-LABlab(51.21, -10.95, 31.98)
CIE-LCHlch(51.21, 33.80, 108.91°)
OKLaboklab(57.56% -0.031 0.0765)
OKLCHoklch(57.56% 0.083 112.1)
XYZxyz(16.4705, 19.4529, 8.0403)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7E42 #46427E
analogous
#7E6442 #7A7E42 #5C7E42
triadic
#7A7E42 #427A7E #7E427A
tetradic
#7A7E42 #427E64 #46427E #7E425C
square
#7A7E42 #427E64 #46427E #7E425C
split-complementary
#7A7E42 #425C7E #64427E
monochromatic
#2C2E18 #53562D #7A7E42 #A1A657 #B8BC7F

Accessibility & contrast

On white

4.29
#7A7E42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#7A7E42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7E42
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7E42#FFFFFF#000000##000000
##7A7E421.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86793D
Deuteranopia (green-blind)
#867B45
Tritanopia (blue-blind)
#817870
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7a7e42;
/* rgb */ color: rgb(122, 126, 66);
/* oklch */ color: oklch(57.6% 0.083 112.1);
Tailwind
colors: {
  custom: {
    50: '#a2a378',
    500: '#7a7e42',
    950: '#000000',
  },
}
SCSS
$custom: #7a7e42;
$custom-light: #a2a378;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7e42",
  "rgb": {
    "r": 122,
    "g": 126,
    "b": 66
  },
  "hsl": {
    "h": 64,
    "s": 31.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.5756,
    "c": 0.08257,
    "h": 112.1
  },
  "luminance": 0.19453
}

Semantic roles & 50–950 ramp

primary
#7A7E42
secondary
#7875A7
accent
#60C767
background
#FAFAF7
surface
#F4F3ED
border
#CECDC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #7A7E42

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

Preview Lab → · Contrast checker → · Palette generator →

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