#7F8E0F#7F8E0F

#7F8E0F is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.4% C 0.138 H 117.1°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7F8E0F
RGBrgb(127, 142, 15)
HSLhsl(67, 81%, 31%)
HSVhsv(67, 89%, 56%)
CMYKcmyk(10.6%, 0%, 89.4%, 44.3%)
CIE-LABlab(55.98, -20.43, 57.13)
CIE-LCHlch(55.98, 60.67, 109.68°)
OKLaboklab(61.36% -0.0626 0.1225)
OKLCHoklch(61.36% 0.138 117.1)
XYZxyz(18.5121, 23.8928, 4.0884)
Luminance0.2389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E0F #1E0F8E
analogous
#8E5D0F #7F8E0F #3F8E0F
triadic
#7F8E0F #0F7F8E #8E0F7F
tetradic
#7F8E0F #0F8E5D #1E0F8E #8E0F3F
square
#7F8E0F #0F8E5D #1E0F8E #8E0F3F
split-complementary
#7F8E0F #0F3F8E #5D0F8E
monochromatic
#1C1F03 #4D5709 #7F8E0F #B1C515 #D3E92E

Accessibility & contrast

On white

3.63
#7F8E0F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#7F8E0F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E0F
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E0F#FFFFFF#000000##000000
##7F8E0F1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#97871F
Tritanopia (blue-blind)
#888578
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e0f;
/* rgb */ color: rgb(127, 142, 15);
/* oklch */ color: oklch(61.4% 0.138 117.1);
Tailwind
colors: {
  custom: {
    50: '#a8af5f',
    500: '#7f8e0f',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e0f;
$custom-light: #a8af5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e0f",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 15
  },
  "hsl": {
    "h": 67.087,
    "s": 80.892,
    "l": 30.784
  },
  "oklch": {
    "l": 0.61356,
    "c": 0.13757,
    "h": 117.1
  },
  "luminance": 0.23893
}

Semantic roles & 50–950 ramp

primary
#7F8E0F
secondary
#4736C3
accent
#31F748
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7F8E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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