#7F8011#7F8011

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

Color values

HEX#7F8011
RGBrgb(127, 128, 17)
HSLhsl(61, 77%, 28%)
HSVhsv(61, 87%, 50%)
CMYKcmyk(0.8%, 0%, 86.7%, 49.8%)
CIE-LABlab(51.83, -13.02, 53.26)
CIE-LCHlch(51.83, 54.83, 103.74°)
OKLaboklab(58.03% -0.0421 0.1144)
OKLCHoklch(58.03% 0.122 110.2)
XYZxyz(16.5734, 19.9913, 3.5159)
Luminance0.1999 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8011 #121180
analogous
#804911 #7F8011 #478011
triadic
#7F8011 #117F80 #80117F
tetradic
#7F8011 #118049 #121180 #801147
square
#7F8011 #118049 #121180 #801147
split-complementary
#7F8011 #114780 #491180
monochromatic
#1B1B04 #494A0A #7F8011 #B5B618 #E1E329

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8011#FFFFFF#000000##000000
##7F80111.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: #7f8011;
/* rgb */ color: rgb(127, 128, 17);
/* oklch */ color: oklch(58.0% 0.122 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45d',
    500: '#7f8011',
    950: '#000000',
  },
}
SCSS
$custom: #7f8011;
$custom-light: #a8a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8011",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 17
  },
  "hsl": {
    "h": 60.541,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.58026,
    "c": 0.12187,
    "h": 110.2
  },
  "luminance": 0.19991
}

Semantic roles & 50–950 ramp

primary
#7F8011
secondary
#3837B6
accent
#35F336
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8011

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

Preview Lab → · Contrast checker → · Palette generator →

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