#7F8124#7F8124

#7F8124 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.4% C 0.113 H 110.7°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7F8124
RGBrgb(127, 129, 36)
HSLhsl(61, 56%, 32%)
HSVhsv(61, 72%, 51%)
CMYKcmyk(1.6%, 0%, 72.1%, 49.4%)
CIE-LABlab(52.22, -12.77, 47.45)
CIE-LCHlch(52.22, 49.13, 105.07°)
OKLaboklab(58.37% -0.0398 0.1056)
OKLCHoklch(58.37% 0.113 110.7)
XYZxyz(16.9217, 20.3404, 4.7034)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8124 #262481
analogous
#815424 #7F8124 #518124
triadic
#7F8124 #247F81 #81247F
tetradic
#7F8124 #248154 #262481 #812451
square
#7F8124 #248154 #262481 #812451
split-complementary
#7F8124 #245181 #542481
monochromatic
#212109 #505117 #7F8124 #AEB131 #CCCE51

Accessibility & contrast

On white

4.14
#7F8124 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7F8124 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8124
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8124#FFFFFF#000000##000000
##7F81241.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B14
Deuteranopia (green-blind)
#8C7E2B
Tritanopia (blue-blind)
#88796F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7f8124;
/* rgb */ color: rgb(127, 129, 36);
/* oklch */ color: oklch(58.4% 0.113 110.7);
Tailwind
colors: {
  custom: {
    50: '#a7a565',
    500: '#7f8124',
    950: '#000000',
  },
}
SCSS
$custom: #7f8124;
$custom-light: #a7a565;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8124",
  "rgb": {
    "r": 127,
    "g": 129,
    "b": 36
  },
  "hsl": {
    "h": 61.29,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58371,
    "c": 0.11281,
    "h": 110.7
  },
  "luminance": 0.2034
}

Semantic roles & 50–950 ramp

primary
#7F8124
secondary
#514EB2
accent
#48E04B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8124

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

Preview Lab → · Contrast checker → · Palette generator →

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