#7E701C#7E701C

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

Color values

HEX#7E701C
RGBrgb(126, 112, 28)
HSLhsl(51, 64%, 30%)
HSVhsv(51, 78%, 49%)
CMYKcmyk(0%, 11.1%, 77.8%, 50.6%)
CIE-LABlab(47.12, -4.22, 45.61)
CIE-LCHlch(47.12, 45.80, 95.29°)
OKLaboklab(54.27% -0.0165 0.1001)
OKLCHoklch(54.27% 0.102 99.4)
XYZxyz(14.6087, 16.1085, 3.4382)
Luminance0.1611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E701C #1C2A7E
analogous
#7E3F1C #7E701C #5B7E1C
triadic
#7E701C #1C7E70 #701C7E
tetradic
#7E701C #1C7E3F #1C2A7E #7E1C5B
square
#7E701C #1C7E3F #1C2A7E #7E1C5B
split-complementary
#7E701C #1C5B7E #3F1C7E
monochromatic
#1A1706 #4C4311 #7E701C #B09D27 #D5BF40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E701C#FFFFFF#000000##FFFFFF
##7E701C1.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)
#7C6D0C
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#886760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e701c;
/* rgb */ color: rgb(126, 112, 28);
/* oklch */ color: oklch(54.3% 0.102 99.4);
Tailwind
colors: {
  custom: {
    50: '#a7985f',
    500: '#7e701c',
    950: '#000000',
  },
}
SCSS
$custom: #7e701c;
$custom-light: #a7985f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e701c",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 51.429,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54268,
    "c": 0.1015,
    "h": 99.4
  },
  "luminance": 0.16108
}

Semantic roles & 50–950 ramp

primary
#7E701C
secondary
#4454B2
accent
#59E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E701C

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

Preview Lab → · Contrast checker → · Palette generator →

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