#7E7B16#7E7B16

#7E7B16 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.115 H 107.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E7B16
RGBrgb(126, 123, 22)
HSLhsl(58, 70%, 29%)
HSVhsv(58, 83%, 49%)
CMYKcmyk(0%, 2.4%, 82.5%, 50.6%)
CIE-LABlab(50.29, -10.61, 50.54)
CIE-LCHlch(50.29, 51.64, 101.86°)
OKLaboklab(56.78% -0.035 0.1095)
OKLCHoklch(56.78% 0.115 107.7)
XYZxyz(15.8326, 18.6600, 3.5267)
Luminance0.1866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7B16 #16197E
analogous
#7E4716 #7E7B16 #4D7E16
triadic
#7E7B16 #167E7B #7B167E
tetradic
#7E7B16 #167E47 #16197E #7E164D
square
#7E7B16 #167E47 #16197E #7E164D
split-complementary
#7E7B16 #164D7E #47167E
monochromatic
#1A1905 #4A480D #7E7B16 #B2AE1F #DBD733

Accessibility & contrast

On white

4.44
#7E7B16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#7E7B16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7B16
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7B16#FFFFFF#000000##000000
##7E7B161.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#88791F
Tritanopia (blue-blind)
#887269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7b16;
/* rgb */ color: rgb(126, 123, 22);
/* oklch */ color: oklch(56.8% 0.115 107.7);
Tailwind
colors: {
  custom: {
    50: '#a7a05e',
    500: '#7e7b16',
    950: '#000000',
  },
}
SCSS
$custom: #7e7b16;
$custom-light: #a7a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7b16",
  "rgb": {
    "r": 126,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 58.269,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56781,
    "c": 0.11492,
    "h": 107.7
  },
  "luminance": 0.18659
}

Semantic roles & 50–950 ramp

primary
#7E7B16
secondary
#3D40B3
accent
#40ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7B16

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

Preview Lab → · Contrast checker → · Palette generator →

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