#7E7E2F#7E7E2F

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

Color values

HEX#7E7E2F
RGBrgb(126, 126, 47)
HSLhsl(60, 46%, 34%)
HSVhsv(60, 63%, 49%)
CMYKcmyk(0%, 0%, 62.7%, 50.6%)
CIE-LABlab(51.34, -10.89, 41.76)
CIE-LCHlch(51.34, 43.16, 104.62°)
OKLaboklab(57.68% -0.0332 0.0954)
OKLCHoklch(57.68% 0.101 109.2)
XYZxyz(16.5786, 19.5630, 5.5915)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E2F #2F2F7E
analogous
#7E572F #7E7E2F #577E2F
triadic
#7E7E2F #2F7E7E #7E2F7E
tetradic
#7E7E2F #2F7E57 #2F2F7E #7E2F57
square
#7E7E2F #2F7E57 #2F2F7E #7E2F57
split-complementary
#7E7E2F #2F577E #572F7E
monochromatic
#25250E #51511E #7E7E2F #ABAB40 #C5C563

Accessibility & contrast

On white

4.27
#7E7E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7E2F#FFFFFF#000000##000000
##7E7E2F1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e7e2f;
/* rgb */ color: rgb(126, 126, 47);
/* oklch */ color: oklch(57.7% 0.101 109.2);
Tailwind
colors: {
  custom: {
    50: '#a6a36b',
    500: '#7e7e2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e2f;
$custom-light: #a6a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e2f",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 60,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57675,
    "c": 0.10106,
    "h": 109.2
  },
  "luminance": 0.19563
}

Semantic roles & 50–950 ramp

primary
#7E7E2F
secondary
#5D5DAC
accent
#52D552
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7E7E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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