#7F8116#7F8116

#7F8116 is a mid, vivid yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.121 H 110.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7F8116
RGBrgb(127, 129, 22)
HSLhsl(61, 71%, 30%)
HSVhsv(61, 83%, 51%)
CMYKcmyk(1.6%, 0%, 82.9%, 49.4%)
CIE-LABlab(52.14, -13.40, 52.19)
CIE-LCHlch(52.14, 53.88, 104.40°)
OKLaboklab(58.28% -0.0428 0.113)
OKLCHoklch(58.28% 0.121 110.8)
XYZxyz(16.7481, 20.2709, 3.7893)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8116 #181681
analogous
#814D16 #7F8116 #4A8116
triadic
#7F8116 #167F81 #81167F
tetradic
#7F8116 #16814D #181681 #81164A
square
#7F8116 #16814D #181681 #81164A
split-complementary
#7F8116 #164A81 #4D1681
monochromatic
#1A1A04 #4C4D0D #7F8116 #B2B51F #D9DD35

Accessibility & contrast

On white

4.16
#7F8116 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7F8116 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8116
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8116#FFFFFF#000000##000000
##7F81161.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#89786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8116;
/* rgb */ color: rgb(127, 129, 22);
/* oklch */ color: oklch(58.3% 0.121 110.8);
Tailwind
colors: {
  custom: {
    50: '#a8a55f',
    500: '#7f8116',
    950: '#000000',
  },
}
SCSS
$custom: #7f8116;
$custom-light: #a8a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8116",
  "rgb": {
    "r": 127,
    "g": 129,
    "b": 22
  },
  "hsl": {
    "h": 61.121,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.58284,
    "c": 0.12082,
    "h": 110.8
  },
  "luminance": 0.2027
}

Semantic roles & 50–950 ramp

primary
#7F8116
secondary
#3F3DB6
accent
#3AEE3E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8116

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

Preview Lab → · Contrast checker → · Palette generator →

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