#7F8012#7F8012

#7F8012 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#7F8012
RGBrgb(127, 128, 18)
HSLhsl(61, 75%, 29%)
HSVhsv(61, 86%, 50%)
CMYKcmyk(0.8%, 0%, 85.9%, 49.8%)
CIE-LABlab(51.83, -12.99, 53.01)
CIE-LCHlch(51.83, 54.58, 103.77°)
OKLaboklab(58.03% -0.042 0.114)
OKLCHoklch(58.03% 0.121 110.2)
XYZxyz(16.5814, 19.9945, 3.5580)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8012 #131280
analogous
#804A12 #7F8012 #488012
triadic
#7F8012 #127F80 #80127F
tetradic
#7F8012 #12804A #131280 #801248
square
#7F8012 #12804A #131280 #801248
split-complementary
#7F8012 #124880 #4A1280
monochromatic
#1B1B04 #4A4A0A #7F8012 #B4B61A #E0E12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8012#FFFFFF#000000##000000
##7F80121.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)
#8C7D1D
Tritanopia (blue-blind)
#89776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8012;
/* rgb */ color: rgb(127, 128, 18);
/* oklch */ color: oklch(58.0% 0.121 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45d',
    500: '#7f8012',
    950: '#000000',
  },
}
SCSS
$custom: #7f8012;
$custom-light: #a8a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8012",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 60.545,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5803,
    "c": 0.12148,
    "h": 110.2
  },
  "luminance": 0.19994
}

Semantic roles & 50–950 ramp

primary
#7F8012
secondary
#3938B6
accent
#36F238
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8012

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

Preview Lab → · Contrast checker → · Palette generator →

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