#7F8A14#7F8A14

#7F8A14 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.4% C 0.131 H 115.4°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7F8A14
RGBrgb(127, 138, 20)
HSLhsl(66, 75%, 31%)
HSVhsv(66, 86%, 54%)
CMYKcmyk(8%, 0%, 85.5%, 45.9%)
CIE-LABlab(54.80, -18.23, 55.02)
CIE-LCHlch(54.80, 57.96, 108.33°)
OKLaboklab(60.42% -0.0563 0.1187)
OKLCHoklch(60.42% 0.131 115.4)
XYZxyz(17.9677, 22.7398, 4.1044)
Luminance0.2274 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A14 #1F148A
analogous
#8A5A14 #7F8A14 #448A14
triadic
#7F8A14 #147F8A #8A147F
tetradic
#7F8A14 #148A5A #1F148A #8A1444
square
#7F8A14 #148A5A #1F148A #8A1444
split-complementary
#7F8A14 #14448A #5A148A
monochromatic
#1D1F05 #4E550C #7F8A14 #B0BF1C #D2E236

Accessibility & contrast

On white

3.79
#7F8A14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#7F8A14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A14
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A14#FFFFFF#000000##000000
##7F8A141.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#958200
Deuteranopia (green-blind)
#948421
Tritanopia (blue-blind)
#888175
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a14;
/* rgb */ color: rgb(127, 138, 20);
/* oklch */ color: oklch(60.4% 0.131 115.4);
Tailwind
colors: {
  custom: {
    50: '#a8ac60',
    500: '#7f8a14',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a14;
$custom-light: #a8ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a14",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 20
  },
  "hsl": {
    "h": 65.593,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.60415,
    "c": 0.13137,
    "h": 115.4
  },
  "luminance": 0.22739
}

Semantic roles & 50–950 ramp

primary
#7F8A14
secondary
#483CBE
accent
#36F148
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7F8A14

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

Preview Lab → · Contrast checker → · Palette generator →

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