#7E702D#7E702D

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

Color values

HEX#7E702D
RGBrgb(126, 112, 45)
HSLhsl(50, 47%, 34%)
HSVhsv(50, 64%, 49%)
CMYKcmyk(0%, 11.1%, 64.3%, 50.6%)
CIE-LABlab(47.25, -3.21, 38.27)
CIE-LCHlch(47.25, 38.40, 94.80°)
OKLaboklab(54.42% -0.0116 0.0877)
OKLCHoklch(54.42% 0.088 97.5)
XYZxyz(14.8726, 16.2141, 4.8284)
Luminance0.1621 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E702D #2D3B7E
analogous
#7E472D #7E702D #637E2D
triadic
#7E702D #2D7E70 #702D7E
tetradic
#7E702D #2D7E47 #2D3B7E #7E2D63
square
#7E702D #2D7E47 #2D3B7E #7E2D63
split-complementary
#7E702D #2D637E #472D7E
monochromatic
#24200D #51481D #7E702D #AB983D #C6B45F

Accessibility & contrast

On white

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

On black

4.24
#7E702D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E702D#FFFFFF#000000##FFFFFF
##7E702D1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e702d;
/* rgb */ color: rgb(126, 112, 45);
/* oklch */ color: oklch(54.4% 0.088 97.5);
Tailwind
colors: {
  custom: {
    50: '#a69869',
    500: '#7e702d',
    950: '#000000',
  },
}
SCSS
$custom: #7e702d;
$custom-light: #a69869;
$custom-dark: #000000;
JSON
{
  "hex": "#7e702d",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 45
  },
  "hsl": {
    "h": 49.63,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.54422,
    "c": 0.08848,
    "h": 97.5
  },
  "luminance": 0.16213
}

Semantic roles & 50–950 ramp

primary
#7E702D
secondary
#5A69AC
accent
#68D751
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7E702D

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

Preview Lab → · Contrast checker → · Palette generator →

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