#7F7416#7F7416

#7F7416 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.3% C 0.108 H 102.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F7416
RGBrgb(127, 116, 22)
HSLhsl(54, 70%, 29%)
HSVhsv(54, 83%, 50%)
CMYKcmyk(0%, 8.7%, 82.7%, 50.2%)
CIE-LABlab(48.34, -6.26, 48.86)
CIE-LCHlch(48.34, 49.26, 97.30°)
OKLaboklab(55.25% -0.0229 0.1058)
OKLCHoklch(55.25% 0.108 102.2)
XYZxyz(15.1433, 17.0614, 3.2544)
Luminance0.1706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7416 #16217F
analogous
#7F4016 #7F7416 #567F16
triadic
#7F7416 #167F74 #74167F
tetradic
#7F7416 #167F40 #16217F #7F1656
square
#7F7416 #167F40 #16217F #7F1656
split-complementary
#7F7416 #16567F #40167F
monochromatic
#1A1805 #4B440D #7F7416 #B3A41F #DCCA34

Accessibility & contrast

On white

4.76
#7F7416 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7F7416 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7416
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7416#FFFFFF#000000##FFFFFF
##7F74161.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#83751E
Tritanopia (blue-blind)
#896B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7416;
/* rgb */ color: rgb(127, 116, 22);
/* oklch */ color: oklch(55.3% 0.108 102.2);
Tailwind
colors: {
  custom: {
    50: '#a89b5d',
    500: '#7f7416',
    950: '#000000',
  },
}
SCSS
$custom: #7f7416;
$custom-light: #a89b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7416",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 22
  },
  "hsl": {
    "h": 53.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5525,
    "c": 0.10824,
    "h": 102.2
  },
  "luminance": 0.17061
}

Semantic roles & 50–950 ramp

primary
#7F7416
secondary
#3D49B4
accent
#4DED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7416

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

Preview Lab → · Contrast checker → · Palette generator →

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