#7E7F16#7E7F16

#7E7F16 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.119 H 110.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7E7F16
RGBrgb(126, 127, 22)
HSLhsl(61, 70%, 29%)
HSVhsv(61, 83%, 50%)
CMYKcmyk(0.8%, 0%, 82.7%, 50.2%)
CIE-LABlab(51.47, -12.79, 51.57)
CIE-LCHlch(51.47, 53.13, 103.92°)
OKLaboklab(57.72% -0.0411 0.1117)
OKLCHoklch(57.72% 0.119 110.2)
XYZxyz(16.3390, 19.6728, 3.6954)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7F16 #17167F
analogous
#7F4C16 #7E7F16 #4A7F16
triadic
#7E7F16 #167E7F #7F167E
tetradic
#7E7F16 #167F4C #17167F #7F164A
square
#7E7F16 #167F4C #17167F #7F164A
split-complementary
#7E7F16 #164A7F #4C167F
monochromatic
#1A1A05 #4A4B0D #7E7F16 #B2B31F #DADC34

Accessibility & contrast

On white

4.26
#7E7F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#7E7F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7F16
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7F16#FFFFFF#000000##000000
##7E7F161.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8B7C20
Tritanopia (blue-blind)
#87766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e7f16;
/* rgb */ color: rgb(126, 127, 22);
/* oklch */ color: oklch(57.7% 0.119 110.2);
Tailwind
colors: {
  custom: {
    50: '#a7a35f',
    500: '#7e7f16',
    950: '#000000',
  },
}
SCSS
$custom: #7e7f16;
$custom-light: #a7a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7f16",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 60.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57722,
    "c": 0.11898,
    "h": 110.2
  },
  "luminance": 0.19672
}

Semantic roles & 50–950 ramp

primary
#7E7F16
secondary
#3E3DB4
accent
#3BED3C
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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