#7F8722#7F8722

#7F8722 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.8% C 0.121 H 114.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F8722
RGBrgb(127, 135, 34)
HSLhsl(65, 60%, 33%)
HSVhsv(65, 75%, 53%)
CMYKcmyk(5.9%, 0%, 74.8%, 47.1%)
CIE-LABlab(53.98, -16.08, 49.91)
CIE-LCHlch(53.98, 52.44, 107.86°)
OKLaboklab(59.78% -0.0492 0.1104)
OKLCHoklch(59.78% 0.121 114)
XYZxyz(17.7056, 21.9558, 4.8183)
Luminance0.2195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8722 #2A2287
analogous
#875C22 #7F8722 #4D8722
triadic
#7F8722 #227F87 #87227F
tetradic
#7F8722 #22875C #2A2287 #87224D
square
#7F8722 #22875C #2A2287 #87224D
split-complementary
#7F8722 #224D87 #5C2287
monochromatic
#232509 #515616 #7F8722 #ADB82E #C9D350

Accessibility & contrast

On white

3.90
#7F8722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7F8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8722
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8722#FFFFFF#000000##000000
##7F87221.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#91822A
Tritanopia (blue-blind)
#887F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8722;
/* rgb */ color: rgb(127, 135, 34);
/* oklch */ color: oklch(59.8% 0.121 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a965',
    500: '#7f8722',
    950: '#000000',
  },
}
SCSS
$custom: #7f8722;
$custom-light: #a7a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8722",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 64.752,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59776,
    "c": 0.12088,
    "h": 114
  },
  "luminance": 0.21955
}

Semantic roles & 50–950 ramp

primary
#7F8722
secondary
#574EB7
accent
#45E351
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8722

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

Preview Lab → · Contrast checker → · Palette generator →

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