#7C873A#7C873A

#7C873A is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 59.7% C 0.102 H 116.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7C873A
RGBrgb(124, 135, 58)
HSLhsl(69, 40%, 38%)
HSVhsv(69, 57%, 53%)
CMYKcmyk(8.1%, 0%, 57%, 47.1%)
CIE-LABlab(53.94, -15.72, 39.34)
CIE-LCHlch(53.94, 42.37, 111.78°)
OKLaboklab(59.75% -0.0455 0.0918)
OKLCHoklch(59.75% 0.102 116.4)
XYZxyz(17.7402, 21.9187, 7.2984)
Luminance0.2192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C873A #453A87
analogous
#876B3A #7C873A #56873A
triadic
#7C873A #3A7C87 #873A7C
tetradic
#7C873A #3A876B #453A87 #873A56
square
#7C873A #3A876B #453A87 #873A56
split-complementary
#7C873A #3A5687 #6B3A87
monochromatic
#2D3115 #555C28 #7C873A #A3B24C #B9C577

Accessibility & contrast

On white

3.90
#7C873A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7C873A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C873A
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C873A#FFFFFF#000000##000000
##7C873A1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#908132
Deuteranopia (green-blind)
#8F823F
Tritanopia (blue-blind)
#838076
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7c873a;
/* rgb */ color: rgb(124, 135, 58);
/* oklch */ color: oklch(59.7% 0.102 116.4);
Tailwind
colors: {
  custom: {
    50: '#a4a973',
    500: '#7c873a',
    950: '#000000',
  },
}
SCSS
$custom: #7c873a;
$custom-light: #a4a973;
$custom-dark: #000000;
JSON
{
  "hex": "#7c873a",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 58
  },
  "hsl": {
    "h": 68.571,
    "s": 39.896,
    "l": 37.843
  },
  "oklch": {
    "l": 0.59749,
    "c": 0.10243,
    "h": 116.4
  },
  "luminance": 0.21919
}

Semantic roles & 50–950 ramp

primary
#7C873A
secondary
#786FAE
accent
#58D069
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #7C873A

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

Preview Lab → · Contrast checker → · Palette generator →

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