#7F8724#7F8724

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

Color values

HEX#7F8724
RGBrgb(127, 135, 36)
HSLhsl(65, 58%, 34%)
HSVhsv(65, 73%, 53%)
CMYKcmyk(5.9%, 0%, 73.3%, 47.1%)
CIE-LABlab(53.99, -15.98, 49.18)
CIE-LCHlch(53.99, 51.71, 108.00°)
OKLaboklab(59.79% -0.0487 0.1092)
OKLCHoklch(59.79% 0.12 114.1)
XYZxyz(17.7353, 21.9677, 4.9746)
Luminance0.2197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8724 #2C2487
analogous
#875D24 #7F8724 #4D8724
triadic
#7F8724 #247F87 #87247F
tetradic
#7F8724 #24875D #2C2487 #87244D
square
#7F8724 #24875D #2C2487 #87244D
split-complementary
#7F8724 #244D87 #5D2487
monochromatic
#24260A #525717 #7F8724 #ACB731 #C7D154

Accessibility & contrast

On white

3.89
#7F8724 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8724#FFFFFF#000000##000000
##7F87241.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#918012
Deuteranopia (green-blind)
#91822C
Tritanopia (blue-blind)
#887F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8724;
/* rgb */ color: rgb(127, 135, 36);
/* oklch */ color: oklch(59.8% 0.120 114.1);
Tailwind
colors: {
  custom: {
    50: '#a7a966',
    500: '#7f8724',
    950: '#000000',
  },
}
SCSS
$custom: #7f8724;
$custom-light: #a7a966;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8724",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 36
  },
  "hsl": {
    "h": 64.848,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5979,
    "c": 0.11959,
    "h": 114.1
  },
  "luminance": 0.21967
}

Semantic roles & 50–950 ramp

primary
#7F8724
secondary
#5951B5
accent
#47E153
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8724

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

Preview Lab → · Contrast checker → · Palette generator →

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