#7F8F14#7F8F14

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

Color values

HEX#7F8F14
RGBrgb(127, 143, 20)
HSLhsl(68, 75%, 32%)
HSVhsv(68, 86%, 56%)
CMYKcmyk(11.2%, 0%, 86%, 43.9%)
CIE-LABlab(56.30, -20.80, 56.28)
CIE-LCHlch(56.30, 60.00, 110.28°)
OKLaboklab(61.61% -0.0633 0.1214)
OKLCHoklch(61.61% 0.137 117.5)
XYZxyz(18.7016, 24.2077, 4.3490)
Luminance0.2421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8F14 #24148F
analogous
#8F6214 #7F8F14 #428F14
triadic
#7F8F14 #147F8F #8F147F
tetradic
#7F8F14 #148F62 #24148F #8F1442
square
#7F8F14 #148F62 #24148F #8F1442
split-complementary
#7F8F14 #14428F #62148F
monochromatic
#202405 #4F590C #7F8F14 #AFC51C #CDE33A

Accessibility & contrast

On white

3.60
#7F8F14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#7F8F14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8F14
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8F14#FFFFFF#000000##000000
##7F8F141.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8f14;
/* rgb */ color: rgb(127, 143, 20);
/* oklch */ color: oklch(61.6% 0.137 117.5);
Tailwind
colors: {
  custom: {
    50: '#a8af60',
    500: '#7f8f14',
    950: '#000000',
  },
}
SCSS
$custom: #7f8f14;
$custom-light: #a8af60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8f14",
  "rgb": {
    "r": 127,
    "g": 143,
    "b": 20
  },
  "hsl": {
    "h": 67.805,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61614,
    "c": 0.13697,
    "h": 117.5
  },
  "luminance": 0.24207
}

Semantic roles & 50–950 ramp

primary
#7F8F14
secondary
#4E3CC3
accent
#36F24E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8F14

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

Preview Lab → · Contrast checker → · Palette generator →

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