#7F8F1A#7F8F1A

#7F8F1A is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.6% C 0.134 H 117.6°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7F8F1A
RGBrgb(127, 143, 26)
HSLhsl(68, 69%, 33%)
HSVhsv(68, 82%, 56%)
CMYKcmyk(11.2%, 0%, 81.8%, 43.9%)
CIE-LABlab(56.32, -20.59, 54.70)
CIE-LCHlch(56.32, 58.45, 110.63°)
OKLaboklab(61.64% -0.0624 0.1191)
OKLCHoklch(61.64% 0.134 117.6)
XYZxyz(18.7618, 24.2317, 4.6659)
Luminance0.2423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F1A #2A1A8F
analogous
#8F641A #7F8F1A #448F1A
triadic
#7F8F1A #1A7F8F #8F1A7F
tetradic
#7F8F1A #1A8F64 #2A1A8F #8F1A44
square
#7F8F1A #1A8F64 #2A1A8F #8F1A44
split-complementary
#7F8F1A #1A448F #641A8F
monochromatic
#232707 #515B11 #7F8F1A #ADC323 #C9DD46

Accessibility & contrast

On white

3.59
#7F8F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#7F8F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F1A
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F1A#FFFFFF#000000##000000
##7F8F1A1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#87877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7f8f1a;
/* rgb */ color: rgb(127, 143, 26);
/* oklch */ color: oklch(61.6% 0.134 117.6);
Tailwind
colors: {
  custom: {
    50: '#a8af63',
    500: '#7f8f1a',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f1a;
$custom-light: #a8af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f1a",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 68.205,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61641,
    "c": 0.13443,
    "h": 117.6
  },
  "luminance": 0.24232
}

Semantic roles & 50–950 ramp

primary
#7F8F1A
secondary
#5746BF
accent
#3CEC54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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