#7F8620#7F8620

#7F8620 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.121 H 113.5°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#7F8620
RGBrgb(127, 134, 32)
HSLhsl(64, 61%, 33%)
HSVhsv(64, 76%, 53%)
CMYKcmyk(5.2%, 0%, 76.1%, 47.5%)
CIE-LABlab(53.67, -15.65, 50.34)
CIE-LCHlch(53.67, 52.72, 107.27°)
OKLaboklab(59.52% -0.0482 0.1109)
OKLCHoklch(59.52% 0.121 113.5)
XYZxyz(17.5387, 21.6669, 4.6244)
Luminance0.2167 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8620 #272086
analogous
#865A20 #7F8620 #4C8620
triadic
#7F8620 #207F86 #86207F
tetradic
#7F8620 #20865A #272086 #86204C
square
#7F8620 #20865A #272086 #86204C
split-complementary
#7F8620 #204C86 #5A2086
monochromatic
#212308 #505514 #7F8620 #AEB72C #CBD44C

Accessibility & contrast

On white

3.94
#7F8620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#7F8620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8620
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8620#FFFFFF#000000##000000
##7F86201.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0A
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#887E73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f8620;
/* rgb */ color: rgb(127, 134, 32);
/* oklch */ color: oklch(59.5% 0.121 113.5);
Tailwind
colors: {
  custom: {
    50: '#a7a964',
    500: '#7f8620',
    950: '#000000',
  },
}
SCSS
$custom: #7f8620;
$custom-light: #a7a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8620",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 64.118,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59525,
    "c": 0.12097,
    "h": 113.5
  },
  "luminance": 0.21667
}

Semantic roles & 50–950 ramp

primary
#7F8620
secondary
#524BB7
accent
#43E54E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F8620

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

Preview Lab → · Contrast checker → · Palette generator →

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