#7F862C#7F862C

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

Color values

HEX#7F862C
RGBrgb(127, 134, 44)
HSLhsl(65, 51%, 35%)
HSVhsv(65, 67%, 53%)
CMYKcmyk(5.2%, 0%, 67.2%, 47.5%)
CIE-LABlab(53.75, -14.96, 45.69)
CIE-LCHlch(53.75, 48.08, 108.13°)
OKLaboklab(59.62% -0.0451 0.1032)
OKLCHoklch(59.62% 0.113 113.6)
XYZxyz(17.7326, 21.7444, 5.6454)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F862C #332C86
analogous
#86602C #7F862C #52862C
triadic
#7F862C #2C7F86 #862C7F
tetradic
#7F862C #2C8660 #332C86 #862C52
square
#7F862C #2C8660 #332C86 #862C52
split-complementary
#7F862C #2C5286 #602C86
monochromatic
#282A0E #53581D #7F862C #ABB43B #C3CB61

Accessibility & contrast

On white

3.93
#7F862C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F862C#FFFFFF#000000##000000
##7F862C1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f862c;
/* rgb */ color: rgb(127, 134, 44);
/* oklch */ color: oklch(59.6% 0.113 113.6);
Tailwind
colors: {
  custom: {
    50: '#a7a96a',
    500: '#7f862c',
    950: '#000000',
  },
}
SCSS
$custom: #7f862c;
$custom-light: #a7a96a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f862c",
  "rgb": {
    "r": 127,
    "g": 134,
    "b": 44
  },
  "hsl": {
    "h": 64.667,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.59618,
    "c": 0.11265,
    "h": 113.6
  },
  "luminance": 0.21744
}

Semantic roles & 50–950 ramp

primary
#7F862C
secondary
#635CB1
accent
#4EDA59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F862C

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

Preview Lab → · Contrast checker → · Palette generator →

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