#7F8916#7F8916

#7F8916 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.129 H 114.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F8916
RGBrgb(127, 137, 22)
HSLhsl(65, 72%, 31%)
HSVhsv(65, 84%, 54%)
CMYKcmyk(7.3%, 0%, 83.9%, 46.3%)
CIE-LABlab(54.51, -17.64, 54.24)
CIE-LCHlch(54.51, 57.04, 108.01°)
OKLaboklab(60.19% -0.0545 0.1174)
OKLCHoklch(60.19% 0.129 114.9)
XYZxyz(17.8434, 22.4616, 4.1545)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8916 #201689
analogous
#895916 #7F8916 #458916
triadic
#7F8916 #167F89 #89167F
tetradic
#7F8916 #168959 #201689 #891645
square
#7F8916 #168959 #201689 #891645
split-complementary
#7F8916 #164589 #591689
monochromatic
#1D2005 #4E540E #7F8916 #B0BE1E #D1DF3A

Accessibility & contrast

On white

3.82
#7F8916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7F8916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8916
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8916#FFFFFF#000000##000000
##7F89161.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938322
Tritanopia (blue-blind)
#888075
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f8916;
/* rgb */ color: rgb(127, 137, 22);
/* oklch */ color: oklch(60.2% 0.129 114.9);
Tailwind
colors: {
  custom: {
    50: '#a8ab60',
    500: '#7f8916',
    950: '#000000',
  },
}
SCSS
$custom: #7f8916;
$custom-light: #a8ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8916",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 65.217,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60185,
    "c": 0.12944,
    "h": 114.9
  },
  "luminance": 0.22461
}

Semantic roles & 50–950 ramp

primary
#7F8916
secondary
#493EBD
accent
#39EF49
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8916

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

Preview Lab → · Contrast checker → · Palette generator →

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