#7F7916#7F7916

#7F7916 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.113 H 105.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F7916
RGBrgb(127, 121, 22)
HSLhsl(57, 70%, 29%)
HSVhsv(57, 83%, 50%)
CMYKcmyk(0%, 4.7%, 82.7%, 50.2%)
CIE-LABlab(49.79, -9.04, 50.14)
CIE-LCHlch(49.79, 50.95, 100.22°)
OKLaboklab(56.41% -0.0307 0.1086)
OKLCHoklch(56.41% 0.113 105.8)
XYZxyz(15.7353, 18.2453, 3.4517)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7916 #161C7F
analogous
#7F4416 #7F7916 #517F16
triadic
#7F7916 #167F79 #79167F
tetradic
#7F7916 #167F44 #161C7F #7F1651
square
#7F7916 #167F44 #161C7F #7F1651
split-complementary
#7F7916 #16517F #44167F
monochromatic
#1A1905 #4B470D #7F7916 #B3AB1F #DCD234

Accessibility & contrast

On white

4.52
#7F7916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F7916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7916
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7916#FFFFFF#000000##000000
##7F79161.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#87781F
Tritanopia (blue-blind)
#897067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7916;
/* rgb */ color: rgb(127, 121, 22);
/* oklch */ color: oklch(56.4% 0.113 105.8);
Tailwind
colors: {
  custom: {
    50: '#a89f5e',
    500: '#7f7916',
    950: '#000000',
  },
}
SCSS
$custom: #7f7916;
$custom-light: #a89f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7916",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 56.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56408,
    "c": 0.11281,
    "h": 105.8
  },
  "luminance": 0.18245
}

Semantic roles & 50–950 ramp

primary
#7F7916
secondary
#3D44B4
accent
#45ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7916

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

Preview Lab → · Contrast checker → · Palette generator →

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