#7E8012#7E8012

#7E8012 is a mid, vivid yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.122 H 110.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E8012
RGBrgb(126, 128, 18)
HSLhsl(61, 75%, 29%)
HSVhsv(61, 86%, 50%)
CMYKcmyk(1.6%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.74, -13.46, 52.90)
CIE-LCHlch(51.74, 54.59, 104.27°)
OKLaboklab(57.94% -0.0432 0.1138)
OKLCHoklch(57.94% 0.122 110.8)
XYZxyz(16.4332, 19.9181, 3.5511)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E8012 #141280
analogous
#804B12 #7E8012 #478012
triadic
#7E8012 #127E80 #80127E
tetradic
#7E8012 #12804B #141280 #801247
square
#7E8012 #12804B #141280 #801247
split-complementary
#7E8012 #124780 #4B1280
monochromatic
#1A1B04 #494A0A #7E8012 #B3B61A #DEE12B

Accessibility & contrast

On white

4.21
#7E8012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7E8012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E8012
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E8012#FFFFFF#000000##000000
##7E80121.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D1E
Tritanopia (blue-blind)
#88776D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e8012;
/* rgb */ color: rgb(126, 128, 18);
/* oklch */ color: oklch(57.9% 0.122 110.8);
Tailwind
colors: {
  custom: {
    50: '#a7a45d',
    500: '#7e8012',
    950: '#000000',
  },
}
SCSS
$custom: #7e8012;
$custom-light: #a7a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e8012",
  "rgb": {
    "r": 126,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 61.091,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5794,
    "c": 0.12174,
    "h": 110.8
  },
  "luminance": 0.19918
}

Semantic roles & 50–950 ramp

primary
#7E8012
secondary
#3A38B6
accent
#36F239
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E8012

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

Preview Lab → · Contrast checker → · Palette generator →

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