#7F8A1A#7F8A1A

#7F8A1A is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.129 H 115.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F8A1A
RGBrgb(127, 138, 26)
HSLhsl(66, 68%, 32%)
HSVhsv(66, 81%, 54%)
CMYKcmyk(8%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.83, -18.01, 53.38)
CIE-LCHlch(54.83, 56.33, 108.65°)
OKLaboklab(60.44% -0.0553 0.1163)
OKLCHoklch(60.44% 0.129 115.4)
XYZxyz(18.0279, 22.7639, 4.4213)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A1A #251A8A
analogous
#8A5D1A #7F8A1A #478A1A
triadic
#7F8A1A #1A7F8A #8A1A7F
tetradic
#7F8A1A #1A8A5D #251A8A #8A1A47
square
#7F8A1A #1A8A5D #251A8A #8A1A47
split-complementary
#7F8A1A #1A478A #5D1A8A
monochromatic
#202307 #505710 #7F8A1A #AEBD24 #CDDC43

Accessibility & contrast

On white

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

On black

5.55
#7F8A1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A1A
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A1A#FFFFFF#000000##000000
##7F8A1A1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8a1a;
/* rgb */ color: rgb(127, 138, 26);
/* oklch */ color: oklch(60.4% 0.129 115.4);
Tailwind
colors: {
  custom: {
    50: '#a7ac62',
    500: '#7f8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a1a;
$custom-light: #a7ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a1a",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 65.893,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60443,
    "c": 0.12873,
    "h": 115.4
  },
  "luminance": 0.22764
}

Semantic roles & 50–950 ramp

primary
#7F8A1A
secondary
#4F43BD
accent
#3DEB4E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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