#7E702B#7E702B

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

Color values

HEX#7E702B
RGBrgb(126, 112, 43)
HSLhsl(50, 49%, 33%)
HSVhsv(50, 66%, 49%)
CMYKcmyk(0%, 11.1%, 65.9%, 50.6%)
CIE-LABlab(47.23, -3.36, 39.22)
CIE-LCHlch(47.23, 39.36, 94.89°)
OKLaboklab(54.4% -0.0123 0.0894)
OKLCHoklch(54.4% 0.09 97.8)
XYZxyz(14.8350, 16.1991, 4.6303)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E702B #2B397E
analogous
#7E472B #7E702B #627E2B
triadic
#7E702B #2B7E70 #702B7E
tetradic
#7E702B #2B7E47 #2B397E #7E2B62
square
#7E702B #2B7E47 #2B397E #7E2B62
split-complementary
#7E702B #2B627E #472B7E
monochromatic
#231F0C #50471B #7E702B #AC993B #C7B55C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E702B#FFFFFF#000000##FFFFFF
##7E702B1.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)
#7B6D23
Deuteranopia (green-blind)
#7F722F
Tritanopia (blue-blind)
#886861
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e702b;
/* rgb */ color: rgb(126, 112, 43);
/* oklch */ color: oklch(54.4% 0.090 97.8);
Tailwind
colors: {
  custom: {
    50: '#a69868',
    500: '#7e702b',
    950: '#000000',
  },
}
SCSS
$custom: #7e702b;
$custom-light: #a69868;
$custom-dark: #000000;
JSON
{
  "hex": "#7e702b",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 43
  },
  "hsl": {
    "h": 49.88,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.544,
    "c": 0.09026,
    "h": 97.8
  },
  "luminance": 0.16198
}

Semantic roles & 50–950 ramp

primary
#7E702B
secondary
#5866AD
accent
#66D94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7E702B

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

Preview Lab → · Contrast checker → · Palette generator →

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