#7E7C16#7E7C16

#7E7C16 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.116 H 108.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E7C16
RGBrgb(126, 124, 22)
HSLhsl(59, 70%, 29%)
HSVhsv(59, 83%, 49%)
CMYKcmyk(0%, 1.6%, 82.5%, 50.6%)
CIE-LABlab(50.58, -11.16, 50.79)
CIE-LCHlch(50.58, 52.00, 102.39°)
OKLaboklab(57.02% -0.0365 0.11)
OKLCHoklch(57.02% 0.116 108.4)
XYZxyz(15.9573, 18.9094, 3.5682)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C16 #16187E
analogous
#7E4816 #7E7C16 #4C7E16
triadic
#7E7C16 #167E7C #7C167E
tetradic
#7E7C16 #167E48 #16187E #7E164C
square
#7E7C16 #167E48 #16187E #7E164C
split-complementary
#7E7C16 #164C7E #48167E
monochromatic
#1A1A05 #4A490D #7E7C16 #B2AF1F #DBD833

Accessibility & contrast

On white

4.39
#7E7C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7E7C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C16
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C16#FFFFFF#000000##000000
##7E7C161.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#897A1F
Tritanopia (blue-blind)
#88736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c16;
/* rgb */ color: rgb(126, 124, 22);
/* oklch */ color: oklch(57.0% 0.116 108.4);
Tailwind
colors: {
  custom: {
    50: '#a7a15e',
    500: '#7e7c16',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c16;
$custom-light: #a7a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c16",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 58.846,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57015,
    "c": 0.11592,
    "h": 108.4
  },
  "luminance": 0.18909
}

Semantic roles & 50–950 ramp

primary
#7E7C16
secondary
#3D3FB3
accent
#3EED3B
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C16

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

Preview Lab → · Contrast checker → · Palette generator →

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