#7E701B#7E701B

#7E701B 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.98:1 contrast (WCAG AA passes).

Color values

HEX#7E701B
RGBrgb(126, 112, 27)
HSLhsl(52, 65%, 30%)
HSVhsv(52, 79%, 49%)
CMYKcmyk(0%, 11.1%, 78.6%, 50.6%)
CIE-LABlab(47.11, -4.27, 45.98)
CIE-LCHlch(47.11, 46.18, 95.30°)
OKLaboklab(54.26% -0.0168 0.1007)
OKLCHoklch(54.26% 0.102 99.4)
XYZxyz(14.5969, 16.1038, 3.3762)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E701B #1B297E
analogous
#7E3E1B #7E701B #5B7E1B
triadic
#7E701B #1B7E70 #701B7E
tetradic
#7E701B #1B7E3E #1B297E #7E1B5B
square
#7E701B #1B7E3E #1B297E #7E1B5B
split-complementary
#7E701B #1B5B7E #3E1B7E
monochromatic
#191605 #4C4310 #7E701B #B09D26 #D6C03E

Accessibility & contrast

On white

4.98
#7E701B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E701B
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E701B#FFFFFF#000000##FFFFFF
##7E701B1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e701b;
/* rgb */ color: rgb(126, 112, 27);
/* oklch */ color: oklch(54.3% 0.102 99.4);
Tailwind
colors: {
  custom: {
    50: '#a7985f',
    500: '#7e701b',
    950: '#000000',
  },
}
SCSS
$custom: #7e701b;
$custom-light: #a7985f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e701b",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 51.515,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.54262,
    "c": 0.1021,
    "h": 99.4
  },
  "luminance": 0.16103
}

Semantic roles & 50–950 ramp

primary
#7E701B
secondary
#4353B2
accent
#58E840
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E701B

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

Preview Lab → · Contrast checker → · Palette generator →

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