#7E7012#7E7012

#7E7012 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.107 H 100.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E7012
RGBrgb(126, 112, 18)
HSLhsl(52, 75%, 28%)
HSVhsv(52, 86%, 49%)
CMYKcmyk(0%, 11.1%, 85.7%, 50.6%)
CIE-LABlab(47.06, -4.61, 48.94)
CIE-LCHlch(47.06, 49.16, 95.38°)
OKLaboklab(54.21% -0.0186 0.1052)
OKLCHoklch(54.21% 0.107 100)
XYZxyz(14.5083, 16.0684, 2.9095)
Luminance0.1607 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7012 #12207E
analogous
#7E3A12 #7E7012 #567E12
triadic
#7E7012 #127E70 #70127E
tetradic
#7E7012 #127E3A #12207E #7E1256
square
#7E7012 #127E3A #12207E #7E1256
split-complementary
#7E7012 #12567E #3A127E
monochromatic
#1B1804 #48400A #7E7012 #B4A01A #E1C92A

Accessibility & contrast

On white

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

On black

4.21
#7E7012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E7012#FFFFFF#000000##FFFFFF
##7E70121.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#80721A
Tritanopia (blue-blind)
#89675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e7012;
/* rgb */ color: rgb(126, 112, 18);
/* oklch */ color: oklch(54.2% 0.107 100.0);
Tailwind
colors: {
  custom: {
    50: '#a7985b',
    500: '#7e7012',
    950: '#000000',
  },
}
SCSS
$custom: #7e7012;
$custom-light: #a7985b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7012",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 52.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5421,
    "c": 0.10681,
    "h": 100
  },
  "luminance": 0.16068
}

Semantic roles & 50–950 ramp

primary
#7E7012
secondary
#3848B4
accent
#4EF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7E7012

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

Preview Lab → · Contrast checker → · Palette generator →

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