#7F8A1E#7F8A1E

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

Color values

HEX#7F8A1E
RGBrgb(127, 138, 30)
HSLhsl(66, 64%, 33%)
HSVhsv(66, 78%, 54%)
CMYKcmyk(8%, 0%, 78.3%, 45.9%)
CIE-LABlab(54.85, -17.85, 52.13)
CIE-LCHlch(54.85, 55.10, 108.90°)
OKLaboklab(60.47% -0.0545 0.1143)
OKLCHoklch(60.47% 0.127 115.5)
XYZxyz(18.0757, 22.7830, 4.6734)
Luminance0.2278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A1E #291E8A
analogous
#8A5F1E #7F8A1E #498A1E
triadic
#7F8A1E #1E7F8A #8A1E7F
tetradic
#7F8A1E #1E8A5F #291E8A #8A1E49
square
#7F8A1E #1E8A5F #291E8A #8A1E49
split-complementary
#7F8A1E #1E498A #5F1E8A
monochromatic
#222508 #515813 #7F8A1E #ADBC29 #C9D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A1E#FFFFFF#000000##000000
##7F8A1E1.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)
#948302
Deuteranopia (green-blind)
#938428
Tritanopia (blue-blind)
#888276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a1e;
/* rgb */ color: rgb(127, 138, 30);
/* oklch */ color: oklch(60.5% 0.127 115.5);
Tailwind
colors: {
  custom: {
    50: '#a7ac64',
    500: '#7f8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a1e;
$custom-light: #a7ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a1e",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 66.111,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60465,
    "c": 0.12666,
    "h": 115.5
  },
  "luminance": 0.22783
}

Semantic roles & 50–950 ramp

primary
#7F8A1E
secondary
#554ABA
accent
#41E752
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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