#7E8112#7E8112

#7E8112 is a mid, vivid yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.123 H 111.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E8112
RGBrgb(126, 129, 18)
HSLhsl(62, 76%, 29%)
HSVhsv(62, 86%, 51%)
CMYKcmyk(2.3%, 0%, 86%, 49.4%)
CIE-LABlab(52.04, -13.99, 53.15)
CIE-LCHlch(52.04, 54.96, 104.75°)
OKLaboklab(58.18% -0.0447 0.1144)
OKLCHoklch(58.18% 0.123 111.4)
XYZxyz(16.5642, 20.1803, 3.5948)
Luminance0.2018 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8112 #151281
analogous
#814D12 #7E8112 #478112
triadic
#7E8112 #127E81 #81127E
tetradic
#7E8112 #12814D #151281 #811247
square
#7E8112 #12814D #151281 #811247
split-complementary
#7E8112 #124781 #4D1281
monochromatic
#1A1B04 #4A4B0B #7E8112 #B2B719 #DDE22C

Accessibility & contrast

On white

4.17
#7E8112 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#7E8112 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8112
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8112#FFFFFF#000000##000000
##7E81121.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D1E
Tritanopia (blue-blind)
#87786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7e8112;
/* rgb */ color: rgb(126, 129, 18);
/* oklch */ color: oklch(58.2% 0.123 111.4);
Tailwind
colors: {
  custom: {
    50: '#a7a55d',
    500: '#7e8112',
    950: '#000000',
  },
}
SCSS
$custom: #7e8112;
$custom-light: #a7a55d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8112",
  "rgb": {
    "r": 126,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 61.622,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58177,
    "c": 0.12278,
    "h": 111.4
  },
  "luminance": 0.2018
}

Semantic roles & 50–950 ramp

primary
#7E8112
secondary
#3C38B7
accent
#36F23B
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8112

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

Preview Lab → · Contrast checker → · Palette generator →

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