#7F8728#7F8728

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

Color values

HEX#7F8728
RGBrgb(127, 135, 40)
HSLhsl(65, 54%, 34%)
HSVhsv(65, 70%, 53%)
CMYKcmyk(5.9%, 0%, 70.4%, 47.1%)
CIE-LABlab(54.02, -15.75, 47.63)
CIE-LCHlch(54.02, 50.17, 108.29°)
OKLaboklab(59.82% -0.0477 0.1067)
OKLCHoklch(59.82% 0.117 114.1)
XYZxyz(17.7999, 21.9935, 5.3146)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8728 #302887
analogous
#876028 #7F8728 #508728
triadic
#7F8728 #287F87 #87287F
tetradic
#7F8728 #288760 #302887 #872850
square
#7F8728 #288760 #302887 #872850
split-complementary
#7F8728 #285087 #602887
monochromatic
#26290C #53581A #7F8728 #ABB636 #C5CE5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8728#FFFFFF#000000##000000
##7F87281.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)
#918019
Deuteranopia (green-blind)
#91822F
Tritanopia (blue-blind)
#877F74
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8728;
/* rgb */ color: rgb(127, 135, 40);
/* oklch */ color: oklch(59.8% 0.117 114.1);
Tailwind
colors: {
  custom: {
    50: '#a7a968',
    500: '#7f8728',
    950: '#000000',
  },
}
SCSS
$custom: #7f8728;
$custom-light: #a7a968;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8728",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 65.053,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59821,
    "c": 0.11685,
    "h": 114.1
  },
  "luminance": 0.21993
}

Semantic roles & 50–950 ramp

primary
#7F8728
secondary
#5F57B4
accent
#4ADE57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8728

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

Preview Lab → · Contrast checker → · Palette generator →

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