#7C862E#7C862E

#7C862E is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.4% C 0.112 H 115.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7C862E
RGBrgb(124, 134, 46)
HSLhsl(67, 49%, 35%)
HSVhsv(67, 66%, 53%)
CMYKcmyk(7.5%, 0%, 65.7%, 47.5%)
CIE-LABlab(53.53, -16.16, 44.50)
CIE-LCHlch(53.53, 47.35, 109.96°)
OKLaboklab(59.38% -0.048 0.1011)
OKLCHoklch(59.38% 0.112 115.4)
XYZxyz(17.3308, 21.5328, 5.8275)
Luminance0.2153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C862E #382E86
analogous
#86642E #7C862E #50862E
triadic
#7C862E #2E7C86 #862E7C
tetradic
#7C862E #2E8664 #382E86 #862E50
square
#7C862E #2E8664 #382E86 #862E50
split-complementary
#7C862E #2E5086 #642E86
monochromatic
#282B0F #52581E #7C862E #A6B43E #BECA64

Accessibility & contrast

On white

3.96
#7C862E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#7C862E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C862E
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C862E#FFFFFF#000000##000000
##7C862E1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#8F8134
Tritanopia (blue-blind)
#847E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c862e;
/* rgb */ color: rgb(124, 134, 46);
/* oklch */ color: oklch(59.4% 0.112 115.4);
Tailwind
colors: {
  custom: {
    50: '#a4a96b',
    500: '#7c862e',
    950: '#000000',
  },
}
SCSS
$custom: #7c862e;
$custom-light: #a4a96b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c862e",
  "rgb": {
    "r": 124,
    "g": 134,
    "b": 46
  },
  "hsl": {
    "h": 66.818,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.59381,
    "c": 0.11197,
    "h": 115.4
  },
  "luminance": 0.21533
}

Semantic roles & 50–950 ramp

primary
#7C862E
secondary
#685FB1
accent
#4FD85F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C862E

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

Preview Lab → · Contrast checker → · Palette generator →

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