#7E7311#7E7311

#7E7311 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.9% C 0.110 H 102.4°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E7311
RGBrgb(126, 115, 17)
HSLhsl(54, 76%, 28%)
HSVhsv(54, 87%, 49%)
CMYKcmyk(0%, 8.7%, 86.5%, 50.6%)
CIE-LABlab(47.93, -6.34, 49.95)
CIE-LCHlch(47.93, 50.35, 97.23°)
OKLaboklab(54.9% -0.0235 0.1072)
OKLCHoklch(54.9% 0.11 102.4)
XYZxyz(14.8368, 16.7382, 2.9795)
Luminance0.1674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7311 #111C7E
analogous
#7E3C11 #7E7311 #527E11
triadic
#7E7311 #117E73 #73117E
tetradic
#7E7311 #117E3C #111C7E #7E1152
square
#7E7311 #117E3C #111C7E #7E1152
split-complementary
#7E7311 #11527E #3C117E
monochromatic
#1B1904 #48420A #7E7311 #B4A418 #E2CF27

Accessibility & contrast

On white

4.83
#7E7311 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E7311 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7311
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7311#FFFFFF#000000##FFFFFF
##7E73111.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#82741A
Tritanopia (blue-blind)
#886A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e7311;
/* rgb */ color: rgb(126, 115, 17);
/* oklch */ color: oklch(54.9% 0.110 102.4);
Tailwind
colors: {
  custom: {
    50: '#a79a5b',
    500: '#7e7311',
    950: '#000000',
  },
}
SCSS
$custom: #7e7311;
$custom-light: #a79a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7311",
  "rgb": {
    "r": 126,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 53.945,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54895,
    "c": 0.10973,
    "h": 102.4
  },
  "luminance": 0.16738
}

Semantic roles & 50–950 ramp

primary
#7E7311
secondary
#3743B4
accent
#48F335
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7E7311

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

Preview Lab → · Contrast checker → · Palette generator →

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