#7F7016#7F7016

#7F7016 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.105 H 99.1°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F7016
RGBrgb(127, 112, 22)
HSLhsl(51, 70%, 29%)
HSVhsv(51, 83%, 50%)
CMYKcmyk(0%, 11.8%, 82.7%, 50.2%)
CIE-LABlab(47.18, -4.00, 47.84)
CIE-LCHlch(47.18, 48.01, 94.78°)
OKLaboklab(54.33% -0.0165 0.1036)
OKLCHoklch(54.33% 0.105 99.1)
XYZxyz(14.6921, 16.1590, 3.1040)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7016 #16257F
analogous
#7F3C16 #7F7016 #5A7F16
triadic
#7F7016 #167F70 #70167F
tetradic
#7F7016 #167F3C #16257F #7F165A
square
#7F7016 #167F3C #16257F #7F165A
split-complementary
#7F7016 #165A7F #3C167F
monochromatic
#1A1705 #4B420D #7F7016 #B39E1F #DCC434

Accessibility & contrast

On white

4.96
#7F7016 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7F7016 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7016
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7016#FFFFFF#000000##FFFFFF
##7F70161.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#80721D
Tritanopia (blue-blind)
#8A675F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f7016;
/* rgb */ color: rgb(127, 112, 22);
/* oklch */ color: oklch(54.3% 0.105 99.1);
Tailwind
colors: {
  custom: {
    50: '#a8985c',
    500: '#7f7016',
    950: '#000000',
  },
}
SCSS
$custom: #7f7016;
$custom-light: #a8985c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7016",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 22
  },
  "hsl": {
    "h": 51.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54334,
    "c": 0.1049,
    "h": 99.1
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#7F7016
secondary
#3D4EB4
accent
#54ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7F7016

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

Preview Lab → · Contrast checker → · Palette generator →

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