#7E7912#7E7912

#7E7912 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.115 H 106.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E7912
RGBrgb(126, 121, 18)
HSLhsl(57, 75%, 28%)
HSVhsv(57, 86%, 49%)
CMYKcmyk(0%, 4%, 85.7%, 50.6%)
CIE-LABlab(49.68, -9.64, 51.16)
CIE-LCHlch(49.68, 52.06, 100.68°)
OKLaboklab(56.29% -0.0326 0.11)
OKLCHoklch(56.29% 0.115 106.5)
XYZxyz(15.5514, 18.1546, 3.2572)
Luminance0.1815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7912 #12177E
analogous
#7E4312 #7E7912 #4D7E12
triadic
#7E7912 #127E79 #79127E
tetradic
#7E7912 #127E43 #12177E #7E124D
square
#7E7912 #127E43 #12177E #7E124D
split-complementary
#7E7912 #124D7E #43127E
monochromatic
#1B1A04 #48460A #7E7912 #B4AC1A #E1D82A

Accessibility & contrast

On white

4.53
#7E7912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7E7912 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7912
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7912#FFFFFF#000000##000000
##7E79121.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#86781C
Tritanopia (blue-blind)
#887067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7912;
/* rgb */ color: rgb(126, 121, 18);
/* oklch */ color: oklch(56.3% 0.115 106.5);
Tailwind
colors: {
  custom: {
    50: '#a79f5c',
    500: '#7e7912',
    950: '#000000',
  },
}
SCSS
$custom: #7e7912;
$custom-light: #a79f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7912",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 18
  },
  "hsl": {
    "h": 57.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56294,
    "c": 0.11476,
    "h": 106.5
  },
  "luminance": 0.18154
}

Semantic roles & 50–950 ramp

primary
#7E7912
secondary
#383EB4
accent
#3FF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7912

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

Preview Lab → · Contrast checker → · Palette generator →

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