#7E702A#7E702A

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

Color values

HEX#7E702A
RGBrgb(126, 112, 42)
HSLhsl(50, 50%, 33%)
HSVhsv(50, 67%, 49%)
CMYKcmyk(0%, 11.1%, 66.7%, 50.6%)
CIE-LABlab(47.23, -3.42, 39.68)
CIE-LCHlch(47.23, 39.83, 94.93°)
OKLaboklab(54.39% -0.0126 0.0903)
OKLCHoklch(54.39% 0.091 97.9)
XYZxyz(14.8169, 16.1918, 4.5349)
Luminance0.1619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E702A #2A387E
analogous
#7E462A #7E702A #627E2A
triadic
#7E702A #2A7E70 #702A7E
tetradic
#7E702A #2A7E46 #2A387E #7E2A62
square
#7E702A #2A7E46 #2A387E #7E2A62
split-complementary
#7E702A #2A627E #462A7E
monochromatic
#221E0B #50471B #7E702A #AC9939 #C8B65A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E702A#FFFFFF#000000##FFFFFF
##7E702A1.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)
#7B6D22
Deuteranopia (green-blind)
#7F722E
Tritanopia (blue-blind)
#886861
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e702a;
/* rgb */ color: rgb(126, 112, 42);
/* oklch */ color: oklch(54.4% 0.091 97.9);
Tailwind
colors: {
  custom: {
    50: '#a69867',
    500: '#7e702a',
    950: '#000000',
  },
}
SCSS
$custom: #7e702a;
$custom-light: #a69867;
$custom-dark: #000000;
JSON
{
  "hex": "#7e702a",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 42
  },
  "hsl": {
    "h": 50,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.54389,
    "c": 0.09112,
    "h": 97.9
  },
  "luminance": 0.16191
}

Semantic roles & 50–950 ramp

primary
#7E702A
secondary
#5665AE
accent
#65DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7E702A

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

Preview Lab → · Contrast checker → · Palette generator →

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