#7F8914#7F8914

#7F8914 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.130 H 114.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F8914
RGBrgb(127, 137, 20)
HSLhsl(65, 75%, 31%)
HSVhsv(65, 85%, 54%)
CMYKcmyk(7.3%, 0%, 85.4%, 46.3%)
CIE-LABlab(54.51, -17.71, 54.76)
CIE-LCHlch(54.51, 57.55, 107.92°)
OKLaboklab(60.18% -0.0548 0.1182)
OKLCHoklch(60.18% 0.13 114.9)
XYZxyz(17.8249, 22.4542, 4.0568)
Luminance0.2245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8914 #1E1489
analogous
#895814 #7F8914 #448914
triadic
#7F8914 #147F89 #89147F
tetradic
#7F8914 #148958 #1E1489 #891444
square
#7F8914 #148958 #1E1489 #891444
split-complementary
#7F8914 #144489 #581489
monochromatic
#1C1E04 #4D540C #7F8914 #B1BE1C #D3E236

Accessibility & contrast

On white

3.82
#7F8914 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7F8914 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8914
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8914#FFFFFF#000000##000000
##7F89141.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938321
Tritanopia (blue-blind)
#888074
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f8914;
/* rgb */ color: rgb(127, 137, 20);
/* oklch */ color: oklch(60.2% 0.130 114.9);
Tailwind
colors: {
  custom: {
    50: '#a8ab5f',
    500: '#7f8914',
    950: '#000000',
  },
}
SCSS
$custom: #7f8914;
$custom-light: #a8ab5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8914",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 20
  },
  "hsl": {
    "h": 65.128,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.60176,
    "c": 0.13027,
    "h": 114.9
  },
  "luminance": 0.22454
}

Semantic roles & 50–950 ramp

primary
#7F8914
secondary
#473CBD
accent
#37F147
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7F8914

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

Preview Lab → · Contrast checker → · Palette generator →

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