#7F8622#7F8622

#7F8622 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.120 H 113.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7F8622
RGBrgb(127, 134, 34)
HSLhsl(64, 60%, 33%)
HSVhsv(64, 75%, 53%)
CMYKcmyk(5.2%, 0%, 74.6%, 47.5%)
CIE-LABlab(53.68, -15.55, 49.63)
CIE-LCHlch(53.68, 52.01, 107.40°)
OKLaboklab(59.54% -0.0477 0.1098)
OKLCHoklch(59.54% 0.12 113.5)
XYZxyz(17.5668, 21.6781, 4.7720)
Luminance0.2168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8622 #292286
analogous
#865B22 #7F8622 #4D8622
triadic
#7F8622 #227F86 #86227F
tetradic
#7F8622 #22865B #292286 #86224D
square
#7F8622 #22865B #292286 #86224D
split-complementary
#7F8622 #224D86 #5B2286
monochromatic
#222409 #515516 #7F8622 #ADB72E #C9D350

Accessibility & contrast

On white

3.94
#7F8622 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7F8622 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8622
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8622#FFFFFF#000000##000000
##7F86221.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0E
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8622;
/* rgb */ color: rgb(127, 134, 34);
/* oklch */ color: oklch(59.5% 0.120 113.5);
Tailwind
colors: {
  custom: {
    50: '#a7a965',
    500: '#7f8622',
    950: '#000000',
  },
}
SCSS
$custom: #7f8622;
$custom-light: #a7a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8622",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 34
  },
  "hsl": {
    "h": 64.2,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.59539,
    "c": 0.11973,
    "h": 113.5
  },
  "luminance": 0.21678
}

Semantic roles & 50–950 ramp

primary
#7F8622
secondary
#554EB6
accent
#45E350
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8622

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

Preview Lab → · Contrast checker → · Palette generator →

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