#7E701F#7E701F

#7E701F is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.3% C 0.100 H 99.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7E701F
RGBrgb(126, 112, 31)
HSLhsl(51, 61%, 31%)
HSVhsv(51, 75%, 49%)
CMYKcmyk(0%, 11.1%, 75.4%, 50.6%)
CIE-LABlab(47.14, -4.08, 44.45)
CIE-LCHlch(47.14, 44.63, 95.24°)
OKLaboklab(54.29% -0.0158 0.0983)
OKLCHoklch(54.29% 0.1 99.1)
XYZxyz(14.6464, 16.1236, 3.6368)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E701F #1F2D7E
analogous
#7E401F #7E701F #5C7E1F
triadic
#7E701F #1F7E70 #701F7E
tetradic
#7E701F #1F7E40 #1F2D7E #7E1F5C
square
#7E701F #1F7E40 #1F2D7E #7E1F5C
split-complementary
#7E701F #1F5C7E #401F7E
monochromatic
#1C1907 #4D4413 #7E701F #AF9C2B #D1BD46

Accessibility & contrast

On white

4.97
#7E701F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E701F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E701F
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E701F#FFFFFF#000000##FFFFFF
##7E701F1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D11
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#886760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e701f;
/* rgb */ color: rgb(126, 112, 31);
/* oklch */ color: oklch(54.3% 0.100 99.1);
Tailwind
colors: {
  custom: {
    50: '#a79861',
    500: '#7e701f',
    950: '#000000',
  },
}
SCSS
$custom: #7e701f;
$custom-light: #a79861;
$custom-dark: #000000;
JSON
{
  "hex": "#7e701f",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 51.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5429,
    "c": 0.09956,
    "h": 99.1
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#7E701F
secondary
#4857B1
accent
#5CE444
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E701F

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

Preview Lab → · Contrast checker → · Palette generator →

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