#7C873E#7C873E

#7C873E is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 59.8% C 0.098 H 116.6°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7C873E
RGBrgb(124, 135, 62)
HSLhsl(69, 37%, 39%)
HSVhsv(69, 54%, 53%)
CMYKcmyk(8.1%, 0%, 54.1%, 47.1%)
CIE-LABlab(53.99, -15.35, 37.41)
CIE-LCHlch(53.99, 40.43, 112.31°)
OKLaboklab(59.8% -0.044 0.088)
OKLCHoklch(59.8% 0.098 116.6)
XYZxyz(17.8459, 21.9610, 7.8553)
Luminance0.2196 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C873E #493E87
analogous
#876D3E #7C873E #57873E
triadic
#7C873E #3E7C87 #873E7C
tetradic
#7C873E #3E876D #493E87 #873E57
square
#7C873E #3E876D #493E87 #873E57
split-complementary
#7C873E #3E5787 #6D3E87
monochromatic
#2F3317 #555D2B #7C873E #A2B052 #B8C37C

Accessibility & contrast

On white

3.89
#7C873E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C873E#FFFFFF#000000##000000
##7C873E1.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8137
Deuteranopia (green-blind)
#8E8242
Tritanopia (blue-blind)
#838077
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7c873e;
/* rgb */ color: rgb(124, 135, 62);
/* oklch */ color: oklch(59.8% 0.098 116.6);
Tailwind
colors: {
  custom: {
    50: '#a3a975',
    500: '#7c873e',
    950: '#000000',
  },
}
SCSS
$custom: #7c873e;
$custom-light: #a3a975;
$custom-dark: #000000;
JSON
{
  "hex": "#7c873e",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 62
  },
  "hsl": {
    "h": 69.041,
    "s": 37.056,
    "l": 38.627
  },
  "oklch": {
    "l": 0.598,
    "c": 0.09842,
    "h": 116.6
  },
  "luminance": 0.21961
}

Semantic roles & 50–950 ramp

primary
#7C873E
secondary
#7C74AD
accent
#5BCD6C
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #7C873E

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

Preview Lab → · Contrast checker → · Palette generator →

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