#7F8014#7F8014

#7F8014 is a mid, vivid yellow. Relative luminance 0.200; OKLCH L 58.0% C 0.121 H 110.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F8014
RGBrgb(127, 128, 20)
HSLhsl(61, 73%, 29%)
HSVhsv(61, 84%, 50%)
CMYKcmyk(0.8%, 0%, 84.4%, 49.8%)
CIE-LABlab(51.84, -12.93, 52.49)
CIE-LCHlch(51.84, 54.06, 103.84°)
OKLaboklab(58.04% -0.0417 0.1132)
OKLCHoklch(58.04% 0.121 110.2)
XYZxyz(16.5985, 20.0014, 3.6480)
Luminance0.2000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8014 #151480
analogous
#804B14 #7F8014 #498014
triadic
#7F8014 #147F80 #80147F
tetradic
#7F8014 #14804B #151480 #801449
square
#7F8014 #14804B #151480 #801449
split-complementary
#7F8014 #144980 #4B1480
monochromatic
#1A1A04 #4A4B0C #7F8014 #B4B51C #DDDF30

Accessibility & contrast

On white

4.20
#7F8014 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7F8014 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8014
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8014#FFFFFF#000000##000000
##7F80141.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#89776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8014;
/* rgb */ color: rgb(127, 128, 20);
/* oklch */ color: oklch(58.0% 0.121 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45e',
    500: '#7f8014',
    950: '#000000',
  },
}
SCSS
$custom: #7f8014;
$custom-light: #a8a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8014",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 20
  },
  "hsl": {
    "h": 60.556,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.58039,
    "c": 0.12066,
    "h": 110.2
  },
  "luminance": 0.20001
}

Semantic roles & 50–950 ramp

primary
#7F8014
secondary
#3C3BB5
accent
#38F03A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8014

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

Preview Lab → · Contrast checker → · Palette generator →

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