#7F8A24#7F8A24

#7F8A24 is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.5% C 0.123 H 115.6°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#7F8A24
RGBrgb(127, 138, 36)
HSLhsl(66, 59%, 34%)
HSVhsv(66, 74%, 54%)
CMYKcmyk(8%, 0%, 73.9%, 45.9%)
CIE-LABlab(54.88, -17.55, 50.04)
CIE-LCHlch(54.88, 53.03, 109.33°)
OKLaboklab(60.5% -0.0531 0.111)
OKLCHoklch(60.5% 0.123 115.6)
XYZxyz(18.1598, 22.8166, 5.1161)
Luminance0.2282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A24 #2F248A
analogous
#8A6224 #7F8A24 #4C8A24
triadic
#7F8A24 #247F8A #8A247F
tetradic
#7F8A24 #248A62 #2F248A #8A244C
square
#7F8A24 #248A62 #2F248A #8A244C
split-complementary
#7F8A24 #244C8A #62248A
monochromatic
#26290B #525917 #7F8A24 #ACBB31 #C5D356

Accessibility & contrast

On white

3.77
#7F8A24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#7F8A24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A24
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A24#FFFFFF#000000##000000
##7F8A241.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948311
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#878276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a24;
/* rgb */ color: rgb(127, 138, 36);
/* oklch */ color: oklch(60.5% 0.123 115.6);
Tailwind
colors: {
  custom: {
    50: '#a7ac66',
    500: '#7f8a24',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a24;
$custom-light: #a7ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a24",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 66.471,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60504,
    "c": 0.12308,
    "h": 115.6
  },
  "luminance": 0.22816
}

Semantic roles & 50–950 ramp

primary
#7F8A24
secondary
#5E53B7
accent
#46E257
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A24

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

Preview Lab → · Contrast checker → · Palette generator →

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