#7F8A1F#7F8A1F

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

Color values

HEX#7F8A1F
RGBrgb(127, 138, 31)
HSLhsl(66, 63%, 33%)
HSVhsv(66, 78%, 54%)
CMYKcmyk(8%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.85, -17.80, 51.80)
CIE-LCHlch(54.85, 54.77, 108.97°)
OKLaboklab(60.47% -0.0543 0.1138)
OKLCHoklch(60.47% 0.126 115.5)
XYZxyz(18.0887, 22.7882, 4.7417)
Luminance0.2279 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A1F #2A1F8A
analogous
#8A5F1F #7F8A1F #498A1F
triadic
#7F8A1F #1F7F8A #8A1F7F
tetradic
#7F8A1F #1F8A5F #2A1F8A #8A1F49
square
#7F8A1F #1F8A5F #2A1F8A #8A1F49
split-complementary
#7F8A1F #1F498A #5F1F8A
monochromatic
#232609 #515814 #7F8A1F #ADBC2A #C9D74C

Accessibility & contrast

On white

3.78
#7F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A1F#FFFFFF#000000##000000
##7F8A1F1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948304
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a1f;
/* rgb */ color: rgb(127, 138, 31);
/* oklch */ color: oklch(60.5% 0.126 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7f8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a1f;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a1f",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 66.168,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60471,
    "c": 0.12611,
    "h": 115.5
  },
  "luminance": 0.22788
}

Semantic roles & 50–950 ramp

primary
#7F8A1F
secondary
#574BBA
accent
#41E652
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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