#7E7A5F#7E7A5F

#7E7A5F is a mid, muted yellow. Relative luminance 0.192; OKLCH L 57.6% C 0.040 H 100.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E7A5F
RGBrgb(126, 122, 95)
HSLhsl(52, 14%, 43%)
HSVhsv(52, 25%, 49%)
CMYKcmyk(0%, 3.2%, 24.6%, 50.6%)
CIE-LABlab(50.90, -3.21, 15.37)
CIE-LCHlch(50.90, 15.70, 101.79°)
OKLaboklab(57.56% -0.0072 0.0391)
OKLCHoklch(57.56% 0.04 100.5)
XYZxyz(17.6293, 19.1812, 13.5979)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7A5F #5F637E
analogous
#7E6A5F #7E7A5F #727E5F
triadic
#7E7A5F #5F7E7A #7A5F7E
tetradic
#7E7A5F #5F7E6A #5F637E #7E5F72
square
#7E7A5F #5F7E6A #5F637E #7E5F72
split-complementary
#7E7A5F #5F727E #6A5F7E
monochromatic
#38362A #5B5845 #7E7A5F #9D997D #B7B4A0

Accessibility & contrast

On white

4.34
#7E7A5F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7E7A5F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7A5F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7A5F#FFFFFF#000000##000000
##7E7A5F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F785D
Deuteranopia (green-blind)
#817A60
Tritanopia (blue-blind)
#837673
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e7a5f;
/* rgb */ color: rgb(126, 122, 95);
/* oklch */ color: oklch(57.6% 0.040 100.5);
Tailwind
colors: {
  custom: {
    50: '#a3a08c',
    500: '#7e7a5f',
    950: '#000000',
  },
}
SCSS
$custom: #7e7a5f;
$custom-light: #a3a08c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7a5f",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 95
  },
  "hsl": {
    "h": 52.258,
    "s": 14.027,
    "l": 43.333
  },
  "oklch": {
    "l": 0.57559,
    "c": 0.03974,
    "h": 100.5
  },
  "luminance": 0.19181
}

Semantic roles & 50–950 ramp

primary
#7E7A5F
secondary
#9395A6
accent
#7AB771
background
#FAF9F8
surface
#F4F2F0
border
#CECCCB
text
#0F0E0C
muted
#7F7E7D

Preview Lab

Preview with #7E7A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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