#7E7512#7E7512

#7E7512 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.4% C 0.111 H 103.8°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E7512
RGBrgb(126, 117, 18)
HSLhsl(55, 75%, 28%)
HSVhsv(55, 86%, 49%)
CMYKcmyk(0%, 7.1%, 85.7%, 50.6%)
CIE-LABlab(48.51, -7.42, 50.17)
CIE-LCHlch(48.51, 50.72, 98.42°)
OKLaboklab(55.36% -0.0265 0.1079)
OKLCHoklch(55.36% 0.111 103.8)
XYZxyz(15.0754, 17.2025, 3.0985)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7512 #121B7E
analogous
#7E3F12 #7E7512 #517E12
triadic
#7E7512 #127E75 #75127E
tetradic
#7E7512 #127E3F #121B7E #7E1251
square
#7E7512 #127E3F #121B7E #7E1251
split-complementary
#7E7512 #12517E #3F127E
monochromatic
#1B1904 #48430A #7E7512 #B4A71A #E1D12A

Accessibility & contrast

On white

4.73
#7E7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7E7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7512
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7512#FFFFFF#000000##FFFFFF
##7E75121.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#83751B
Tritanopia (blue-blind)
#886C63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e7512;
/* rgb */ color: rgb(126, 117, 18);
/* oklch */ color: oklch(55.4% 0.111 103.8);
Tailwind
colors: {
  custom: {
    50: '#a79c5b',
    500: '#7e7512',
    950: '#000000',
  },
}
SCSS
$custom: #7e7512;
$custom-light: #a79c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7512",
  "rgb": {
    "r": 126,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 55,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55363,
    "c": 0.11106,
    "h": 103.8
  },
  "luminance": 0.17202
}

Semantic roles & 50–950 ramp

primary
#7E7512
secondary
#3842B4
accent
#46F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7512

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

Preview Lab → · Contrast checker → · Palette generator →

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