#7E7811#7E7811

#7E7811 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.1% C 0.114 H 105.9°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7E7811
RGBrgb(126, 120, 17)
HSLhsl(57, 76%, 28%)
HSVhsv(57, 87%, 49%)
CMYKcmyk(0%, 4.8%, 86.5%, 50.6%)
CIE-LABlab(49.39, -9.12, 51.18)
CIE-LCHlch(49.39, 51.98, 100.11°)
OKLaboklab(56.06% -0.0313 0.1099)
OKLCHoklch(56.06% 0.114 105.9)
XYZxyz(15.4225, 17.9096, 3.1747)
Luminance0.1791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7811 #11177E
analogous
#7E4111 #7E7811 #4D7E11
triadic
#7E7811 #117E78 #78117E
tetradic
#7E7811 #117E41 #11177E #7E114D
square
#7E7811 #117E41 #11177E #7E114D
split-complementary
#7E7811 #114D7E #41117E
monochromatic
#1B1A04 #48450A #7E7811 #B4AB18 #E2D827

Accessibility & contrast

On white

4.58
#7E7811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7E7811 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7811
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7811#FFFFFF#000000##000000
##7E78111.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#86771B
Tritanopia (blue-blind)
#886F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e7811;
/* rgb */ color: rgb(126, 120, 17);
/* oklch */ color: oklch(56.1% 0.114 105.9);
Tailwind
colors: {
  custom: {
    50: '#a79e5c',
    500: '#7e7811',
    950: '#000000',
  },
}
SCSS
$custom: #7e7811;
$custom-light: #a79e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7811",
  "rgb": {
    "r": 126,
    "g": 120,
    "b": 17
  },
  "hsl": {
    "h": 56.697,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.11422,
    "h": 105.9
  },
  "luminance": 0.17909
}

Semantic roles & 50–950 ramp

primary
#7E7811
secondary
#373EB4
accent
#3FF335
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7811

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

Preview Lab → · Contrast checker → · Palette generator →

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