#7F8024#7F8024

#7F8024 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.112 H 110.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7F8024
RGBrgb(127, 128, 36)
HSLhsl(61, 56%, 32%)
HSVhsv(61, 72%, 50%)
CMYKcmyk(0.8%, 0%, 71.9%, 49.8%)
CIE-LABlab(51.93, -12.23, 47.16)
CIE-LCHlch(51.93, 48.72, 104.54°)
OKLaboklab(58.14% -0.0383 0.105)
OKLCHoklch(58.14% 0.112 110)
XYZxyz(16.7906, 20.0782, 4.6597)
Luminance0.2008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8024 #252480
analogous
#805324 #7F8024 #518024
triadic
#7F8024 #247F80 #80247F
tetradic
#7F8024 #248053 #252480 #802451
square
#7F8024 #248053 #252480 #802451
split-complementary
#7F8024 #245180 #532480
monochromatic
#202009 #505017 #7F8024 #AEB031 #CDCE50

Accessibility & contrast

On white

4.19
#7F8024 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7F8024 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8024
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8024#FFFFFF#000000##000000
##7F80241.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A15
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#88786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8024;
/* rgb */ color: rgb(127, 128, 36);
/* oklch */ color: oklch(58.1% 0.112 110.0);
Tailwind
colors: {
  custom: {
    50: '#a7a465',
    500: '#7f8024',
    950: '#000000',
  },
}
SCSS
$custom: #7f8024;
$custom-light: #a7a465;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8024",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 36
  },
  "hsl": {
    "h": 60.652,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58136,
    "c": 0.11171,
    "h": 110
  },
  "luminance": 0.20078
}

Semantic roles & 50–950 ramp

primary
#7F8024
secondary
#4F4EB2
accent
#48DF4A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8024

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

Preview Lab → · Contrast checker → · Palette generator →

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