#7E7612#7E7612

#7E7612 is a mid, moderate yellow. Relative luminance 0.174; OKLCH L 55.6% C 0.112 H 104.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E7612
RGBrgb(126, 118, 18)
HSLhsl(56, 75%, 28%)
HSVhsv(56, 86%, 49%)
CMYKcmyk(0%, 6.3%, 85.7%, 50.6%)
CIE-LABlab(48.81, -7.98, 50.42)
CIE-LCHlch(48.81, 51.05, 99.00°)
OKLaboklab(55.6% -0.028 0.1084)
OKLCHoklch(55.6% 0.112 104.5)
XYZxyz(15.1925, 17.4368, 3.1375)
Luminance0.1744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7612 #121A7E
analogous
#7E4012 #7E7612 #507E12
triadic
#7E7612 #127E76 #76127E
tetradic
#7E7612 #127E40 #121A7E #7E1250
square
#7E7612 #127E40 #121A7E #7E1250
split-complementary
#7E7612 #12507E #40127E
monochromatic
#1B1904 #48440A #7E7612 #B4A81A #E1D32A

Accessibility & contrast

On white

4.68
#7E7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7E7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7612
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7612#FFFFFF#000000##FFFFFF
##7E76121.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#84761B
Tritanopia (blue-blind)
#886D64
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e7612;
/* rgb */ color: rgb(126, 118, 18);
/* oklch */ color: oklch(55.6% 0.112 104.5);
Tailwind
colors: {
  custom: {
    50: '#a79d5c',
    500: '#7e7612',
    950: '#000000',
  },
}
SCSS
$custom: #7e7612;
$custom-light: #a79d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7612",
  "rgb": {
    "r": 126,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 55.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55595,
    "c": 0.11196,
    "h": 104.5
  },
  "luminance": 0.17436
}

Semantic roles & 50–950 ramp

primary
#7E7612
secondary
#3841B4
accent
#44F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7612

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

Preview Lab → · Contrast checker → · Palette generator →

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