#7F8729#7F8729

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

Color values

HEX#7F8729
RGBrgb(127, 135, 41)
HSLhsl(65, 53%, 35%)
HSVhsv(65, 70%, 53%)
CMYKcmyk(5.9%, 0%, 69.6%, 47.1%)
CIE-LABlab(54.03, -15.69, 47.23)
CIE-LCHlch(54.03, 49.77, 108.37°)
OKLaboklab(59.83% -0.0474 0.106)
OKLCHoklch(59.83% 0.116 114.1)
XYZxyz(17.8171, 22.0004, 5.4053)
Luminance0.2200 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8729 #312987
analogous
#876029 #7F8729 #508729
triadic
#7F8729 #297F87 #87297F
tetradic
#7F8729 #298760 #312987 #872950
square
#7F8729 #298760 #312987 #872950
split-complementary
#7F8729 #295087 #602987
monochromatic
#27290C #53581B #7F8729 #ABB637 #C4CE5D

Accessibility & contrast

On white

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

On black

5.40
#7F8729 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8729
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8729#FFFFFF#000000##000000
##7F87291.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801B
Deuteranopia (green-blind)
#918230
Tritanopia (blue-blind)
#877F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8729;
/* rgb */ color: rgb(127, 135, 41);
/* oklch */ color: oklch(59.8% 0.116 114.1);
Tailwind
colors: {
  custom: {
    50: '#a7a969',
    500: '#7f8729',
    950: '#000000',
  },
}
SCSS
$custom: #7f8729;
$custom-light: #a7a969;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8729",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 41
  },
  "hsl": {
    "h": 65.106,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59829,
    "c": 0.11611,
    "h": 114.1
  },
  "luminance": 0.22
}

Semantic roles & 50–950 ramp

primary
#7F8729
secondary
#6059B3
accent
#4BDD57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F8729

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

Preview Lab → · Contrast checker → · Palette generator →

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