#7C862F#7C862F

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

Color values

HEX#7C862F
RGBrgb(124, 134, 47)
HSLhsl(67, 48%, 35%)
HSVhsv(67, 65%, 53%)
CMYKcmyk(7.5%, 0%, 64.9%, 47.5%)
CIE-LABlab(53.54, -16.09, 44.07)
CIE-LCHlch(53.54, 46.91, 110.06°)
OKLaboklab(59.39% -0.0477 0.1004)
OKLCHoklch(59.39% 0.111 115.4)
XYZxyz(17.3508, 21.5408, 5.9325)
Luminance0.2154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C862F #392F86
analogous
#86652F #7C862F #50862F
triadic
#7C862F #2F7C86 #862F7C
tetradic
#7C862F #2F8665 #392F86 #862F50
square
#7C862F #2F8665 #392F86 #862F50
split-complementary
#7C862F #2F5086 #652F86
monochromatic
#282B0F #52591F #7C862F #A6B33F #BEC966

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C862F#FFFFFF#000000##000000
##7C862F1.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)
#8F7F24
Deuteranopia (green-blind)
#8F8135
Tritanopia (blue-blind)
#847E74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c862f;
/* rgb */ color: rgb(124, 134, 47);
/* oklch */ color: oklch(59.4% 0.111 115.4);
Tailwind
colors: {
  custom: {
    50: '#a4a96c',
    500: '#7c862f',
    950: '#000000',
  },
}
SCSS
$custom: #7c862f;
$custom-light: #a4a96c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c862f",
  "rgb": {
    "r": 124,
    "g": 134,
    "b": 47
  },
  "hsl": {
    "h": 66.897,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59391,
    "c": 0.11114,
    "h": 115.4
  },
  "luminance": 0.21541
}

Semantic roles & 50–950 ramp

primary
#7C862F
secondary
#6A60B0
accent
#50D860
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C862F

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

Preview Lab → · Contrast checker → · Palette generator →

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