#7F871E#7F871E

#7F871E is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.8% C 0.123 H 114.0°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7F871E
RGBrgb(127, 135, 30)
HSLhsl(65, 64%, 32%)
HSVhsv(65, 78%, 53%)
CMYKcmyk(5.9%, 0%, 77.8%, 47.1%)
CIE-LABlab(53.96, -16.27, 51.30)
CIE-LCHlch(53.96, 53.82, 107.60°)
OKLaboklab(59.75% -0.0501 0.1126)
OKLCHoklch(59.75% 0.123 114)
XYZxyz(17.6512, 21.9341, 4.5319)
Luminance0.2193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F871E #261E87
analogous
#875A1E #7F871E #4B871E
triadic
#7F871E #1E7F87 #871E7F
tetradic
#7F871E #1E875A #261E87 #871E4B
square
#7F871E #1E875A #261E87 #871E4B
split-complementary
#7F871E #1E4B87 #5A1E87
monochromatic
#212308 #505513 #7F871E #AEB929 #CCD749

Accessibility & contrast

On white

3.90
#7F871E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#7F871E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F871E
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F871E#FFFFFF#000000##000000
##7F871E1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#887F73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7f871e;
/* rgb */ color: rgb(127, 135, 30);
/* oklch */ color: oklch(59.8% 0.123 114.0);
Tailwind
colors: {
  custom: {
    50: '#a7a963',
    500: '#7f871e',
    950: '#000000',
  },
}
SCSS
$custom: #7f871e;
$custom-light: #a7a963;
$custom-dark: #000000;
JSON
{
  "hex": "#7f871e",
  "rgb": {
    "r": 127,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 64.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.5975,
    "c": 0.12325,
    "h": 114
  },
  "luminance": 0.21934
}

Semantic roles & 50–950 ramp

primary
#7F871E
secondary
#5148B9
accent
#41E74E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F871E

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

Preview Lab → · Contrast checker → · Palette generator →

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