#7F8D1F#7F8D1F

#7F8D1F is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.130 H 116.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#7F8D1F
RGBrgb(127, 141, 31)
HSLhsl(68, 64%, 34%)
HSVhsv(68, 78%, 55%)
CMYKcmyk(9.9%, 0%, 78%, 44.7%)
CIE-LABlab(55.75, -19.36, 52.62)
CIE-LCHlch(55.75, 56.07, 110.19°)
OKLaboklab(61.19% -0.0586 0.1156)
OKLCHoklch(61.19% 0.13 116.9)
XYZxyz(18.5251, 23.6609, 4.8872)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D1F #2D1F8D
analogous
#8D641F #7F8D1F #488D1F
triadic
#7F8D1F #1F7F8D #8D1F7F
tetradic
#7F8D1F #1F8D64 #2D1F8D #8D1F48
square
#7F8D1F #1F8D64 #2D1F8D #8D1F48
split-complementary
#7F8D1F #1F488D #641F8D
monochromatic
#252909 #525B14 #7F8D1F #ACBF2A #C7D84E

Accessibility & contrast

On white

3.66
#7F8D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#7F8D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D1F
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D1F#FFFFFF#000000##000000
##7F8D1F1.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#968629
Tritanopia (blue-blind)
#878578
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d1f;
/* rgb */ color: rgb(127, 141, 31);
/* oklch */ color: oklch(61.2% 0.130 116.9);
Tailwind
colors: {
  custom: {
    50: '#a7ae64',
    500: '#7f8d1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d1f;
$custom-light: #a7ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d1f",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 67.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61189,
    "c": 0.12957,
    "h": 116.9
  },
  "luminance": 0.23661
}

Semantic roles & 50–950 ramp

primary
#7F8D1F
secondary
#5B4DBB
accent
#41E756
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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