#7F8720#7F8720

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

Color values

HEX#7F8720
RGBrgb(127, 135, 32)
HSLhsl(65, 62%, 33%)
HSVhsv(65, 76%, 53%)
CMYKcmyk(5.9%, 0%, 76.3%, 47.1%)
CIE-LABlab(53.97, -16.18, 50.62)
CIE-LCHlch(53.97, 53.15, 107.72°)
OKLaboklab(59.76% -0.0497 0.1115)
OKLCHoklch(59.76% 0.122 114)
XYZxyz(17.6776, 21.9446, 4.6707)
Luminance0.2194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8720 #282087
analogous
#875B20 #7F8720 #4C8720
triadic
#7F8720 #207F87 #87207F
tetradic
#7F8720 #20875B #282087 #87204C
square
#7F8720 #20875B #282087 #87204C
split-complementary
#7F8720 #204C87 #5B2087
monochromatic
#222409 #505614 #7F8720 #AEB82C #CAD54D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8720#FFFFFF#000000##000000
##7F87201.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)
#918009
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#887F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f8720;
/* rgb */ color: rgb(127, 135, 32);
/* oklch */ color: oklch(59.8% 0.122 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a964',
    500: '#7f8720',
    950: '#000000',
  },
}
SCSS
$custom: #7f8720;
$custom-light: #a7a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8720",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 64.66,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59763,
    "c": 0.1221,
    "h": 114
  },
  "luminance": 0.21944
}

Semantic roles & 50–950 ramp

primary
#7F8720
secondary
#544BB8
accent
#43E550
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8720

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

Preview Lab → · Contrast checker → · Palette generator →

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