#7E7E2E#7E7E2E

#7E7E2E is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.7% C 0.102 H 109.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7E7E2E
RGBrgb(126, 126, 46)
HSLhsl(60, 47%, 34%)
HSVhsv(60, 63%, 49%)
CMYKcmyk(0%, 0%, 63.5%, 50.6%)
CIE-LABlab(51.33, -10.96, 42.22)
CIE-LCHlch(51.33, 43.62, 104.56°)
OKLaboklab(57.67% -0.0335 0.0963)
OKLCHoklch(57.67% 0.102 109.2)
XYZxyz(16.5587, 19.5550, 5.4865)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E2E #2E2E7E
analogous
#7E562E #7E7E2E #567E2E
triadic
#7E7E2E #2E7E7E #7E2E7E
tetradic
#7E7E2E #2E7E56 #2E2E7E #7E2E56
square
#7E7E2E #2E7E56 #2E2E7E #7E2E56
split-complementary
#7E7E2E #2E567E #562E7E
monochromatic
#24240D #51511E #7E7E2E #ABAB3E #C5C561

Accessibility & contrast

On white

4.28
#7E7E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#7E7E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E2E
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E2E#FFFFFF#000000##000000
##7E7E2E1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887924
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#87766D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e2e;
/* rgb */ color: rgb(126, 126, 46);
/* oklch */ color: oklch(57.7% 0.102 109.2);
Tailwind
colors: {
  custom: {
    50: '#a6a36b',
    500: '#7e7e2e',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e2e;
$custom-light: #a6a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e2e",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 60,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.10193,
    "h": 109.2
  },
  "luminance": 0.19555
}

Semantic roles & 50–950 ramp

primary
#7E7E2E
secondary
#5C5CAC
accent
#52D652
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E7E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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