#7E702F#7E702F

#7E702F is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.4% C 0.087 H 97.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7E702F
RGBrgb(126, 112, 47)
HSLhsl(49, 46%, 34%)
HSVhsv(49, 63%, 49%)
CMYKcmyk(0%, 11.1%, 62.7%, 50.6%)
CIE-LABlab(47.27, -3.06, 37.30)
CIE-LCHlch(47.27, 37.43, 94.69°)
OKLaboklab(54.44% -0.0109 0.086)
OKLCHoklch(54.44% 0.087 97.2)
XYZxyz(14.9121, 16.2299, 5.0360)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E702F #2F3D7E
analogous
#7E492F #7E702F #657E2F
triadic
#7E702F #2F7E70 #702F7E
tetradic
#7E702F #2F7E49 #2F3D7E #7E2F65
square
#7E702F #2F7E49 #2F3D7E #7E2F65
split-complementary
#7E702F #2F657E #492F7E
monochromatic
#25210E #51481E #7E702F #AB9840 #C5B363

Accessibility & contrast

On white

4.95
#7E702F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7E702F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E702F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E702F#FFFFFF#000000##FFFFFF
##7E702F1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D28
Deuteranopia (green-blind)
#7E7232
Tritanopia (blue-blind)
#886862
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e702f;
/* rgb */ color: rgb(126, 112, 47);
/* oklch */ color: oklch(54.4% 0.087 97.2);
Tailwind
colors: {
  custom: {
    50: '#a6986a',
    500: '#7e702f',
    950: '#000000',
  },
}
SCSS
$custom: #7e702f;
$custom-light: #a6986a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e702f",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 47
  },
  "hsl": {
    "h": 49.367,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54444,
    "c": 0.08665,
    "h": 97.2
  },
  "luminance": 0.16229
}

Semantic roles & 50–950 ramp

primary
#7E702F
secondary
#5D6BAC
accent
#6AD552
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D07
muted
#7F7E7A

Preview Lab

Preview with #7E702F

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

Preview Lab → · Contrast checker → · Palette generator →

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