#7F862E#7F862E

#7F862E is a mid, moderate yellow. Relative luminance 0.218; OKLCH L 59.6% C 0.111 H 113.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7F862E
RGBrgb(127, 134, 46)
HSLhsl(65, 49%, 35%)
HSVhsv(65, 66%, 53%)
CMYKcmyk(5.2%, 0%, 65.7%, 47.5%)
CIE-LABlab(53.77, -14.83, 44.84)
CIE-LCHlch(53.77, 47.22, 108.30°)
OKLaboklab(59.64% -0.0445 0.1018)
OKLCHoklch(59.64% 0.111 113.6)
XYZxyz(17.7711, 21.7598, 5.8481)
Luminance0.2176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F862E #352E86
analogous
#86612E #7F862E #53862E
triadic
#7F862E #2E7F86 #862E7F
tetradic
#7F862E #2E8661 #352E86 #862E53
square
#7F862E #2E8661 #352E86 #862E53
split-complementary
#7F862E #2E5386 #612E86
monochromatic
#292B0F #54581E #7F862E #AAB43E #C2CA64

Accessibility & contrast

On white

3.92
#7F862E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#7F862E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F862E
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F862E#FFFFFF#000000##000000
##7F862E1.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#908023
Deuteranopia (green-blind)
#908134
Tritanopia (blue-blind)
#877E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7f862e;
/* rgb */ color: rgb(127, 134, 46);
/* oklch */ color: oklch(59.6% 0.111 113.6);
Tailwind
colors: {
  custom: {
    50: '#a7a96b',
    500: '#7f862e',
    950: '#000000',
  },
}
SCSS
$custom: #7f862e;
$custom-light: #a7a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f862e",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 64.773,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59637,
    "c": 0.11106,
    "h": 113.6
  },
  "luminance": 0.21759
}

Semantic roles & 50–950 ramp

primary
#7F862E
secondary
#665FB1
accent
#4FD85A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F862E

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

Preview Lab → · Contrast checker → · Palette generator →

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