#7F8D16#7F8D16

#7F8D16 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.134 H 116.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7F8D16
RGBrgb(127, 141, 22)
HSLhsl(67, 73%, 32%)
HSVhsv(67, 84%, 55%)
CMYKcmyk(9.9%, 0%, 84.4%, 44.7%)
CIE-LABlab(55.71, -19.71, 55.27)
CIE-LCHlch(55.71, 58.68, 109.63°)
OKLaboklab(61.14% -0.0602 0.1196)
OKLCHoklch(61.14% 0.134 116.7)
XYZxyz(18.4226, 23.6200, 4.3475)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D16 #24168D
analogous
#8D6016 #7F8D16 #448D16
triadic
#7F8D16 #167F8D #8D167F
tetradic
#7F8D16 #168D60 #24168D #8D1644
square
#7F8D16 #168D60 #24168D #8D1644
split-complementary
#7F8D16 #16448D #60168D
monochromatic
#202305 #4F580E #7F8D16 #AFC21E #CDE13D

Accessibility & contrast

On white

3.67
#7F8D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7F8D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D16
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D16#FFFFFF#000000##000000
##7F8D161.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#888478
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7f8d16;
/* rgb */ color: rgb(127, 141, 22);
/* oklch */ color: oklch(61.1% 0.134 116.7);
Tailwind
colors: {
  custom: {
    50: '#a8ae61',
    500: '#7f8d16',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d16;
$custom-light: #a8ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d16",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 22
  },
  "hsl": {
    "h": 67.059,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61142,
    "c": 0.13392,
    "h": 116.7
  },
  "luminance": 0.2362
}

Semantic roles & 50–950 ramp

primary
#7F8D16
secondary
#4E3EC1
accent
#38F04E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8D16

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

Preview Lab → · Contrast checker → · Palette generator →

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