#7E7712#7E7712

#7E7712 is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.8% C 0.113 H 105.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E7712
RGBrgb(126, 119, 18)
HSLhsl(56, 75%, 28%)
HSVhsv(56, 86%, 49%)
CMYKcmyk(0%, 5.6%, 85.7%, 50.6%)
CIE-LABlab(49.10, -8.54, 50.67)
CIE-LCHlch(49.10, 51.38, 99.57°)
OKLaboklab(55.83% -0.0296 0.1089)
OKLCHoklch(55.83% 0.113 105.2)
XYZxyz(15.3109, 17.6736, 3.1770)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7712 #12197E
analogous
#7E4112 #7E7712 #4F7E12
triadic
#7E7712 #127E77 #77127E
tetradic
#7E7712 #127E41 #12197E #7E124F
square
#7E7712 #127E41 #12197E #7E124F
split-complementary
#7E7712 #124F7E #41127E
monochromatic
#1B1904 #48440A #7E7712 #B4AA1A #E1D52A

Accessibility & contrast

On white

4.63
#7E7712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7E7712 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7712
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7712#FFFFFF#000000##FFFFFF
##7E77121.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#85761C
Tritanopia (blue-blind)
#886E65
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7712;
/* rgb */ color: rgb(126, 119, 18);
/* oklch */ color: oklch(55.8% 0.113 105.2);
Tailwind
colors: {
  custom: {
    50: '#a79d5c',
    500: '#7e7712',
    950: '#000000',
  },
}
SCSS
$custom: #7e7712;
$custom-light: #a79d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7712",
  "rgb": {
    "r": 126,
    "g": 119,
    "b": 18
  },
  "hsl": {
    "h": 56.111,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55827,
    "c": 0.11288,
    "h": 105.2
  },
  "luminance": 0.17673
}

Semantic roles & 50–950 ramp

primary
#7E7712
secondary
#3840B4
accent
#42F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7712

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

Preview Lab → · Contrast checker → · Palette generator →

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