#7C873B#7C873B

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

Color values

HEX#7C873B
RGBrgb(124, 135, 59)
HSLhsl(69, 39%, 38%)
HSVhsv(69, 56%, 53%)
CMYKcmyk(8.1%, 0%, 56.3%, 47.1%)
CIE-LABlab(53.95, -15.63, 38.86)
CIE-LCHlch(53.95, 41.89, 111.91°)
OKLaboklab(59.76% -0.0451 0.0909)
OKLCHoklch(59.76% 0.101 116.4)
XYZxyz(17.7659, 21.9290, 7.4336)
Luminance0.2193 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C873B #463B87
analogous
#876C3B #7C873B #56873B
triadic
#7C873B #3B7C87 #873B7C
tetradic
#7C873B #3B876C #463B87 #873B56
square
#7C873B #3B876C #463B87 #873B56
split-complementary
#7C873B #3B5687 #6C3B87
monochromatic
#2E3216 #555C28 #7C873B #A3B24E #B9C478

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C873B#FFFFFF#000000##000000
##7C873B1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c873b;
/* rgb */ color: rgb(124, 135, 59);
/* oklch */ color: oklch(59.8% 0.101 116.4);
Tailwind
colors: {
  custom: {
    50: '#a4a974',
    500: '#7c873b',
    950: '#000000',
  },
}
SCSS
$custom: #7c873b;
$custom-light: #a4a974;
$custom-dark: #000000;
JSON
{
  "hex": "#7c873b",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 59
  },
  "hsl": {
    "h": 68.684,
    "s": 39.175,
    "l": 38.039
  },
  "oklch": {
    "l": 0.59762,
    "c": 0.10145,
    "h": 116.4
  },
  "luminance": 0.21929
}

Semantic roles & 50–950 ramp

primary
#7C873B
secondary
#7970AE
accent
#59CF6A
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #7C873B

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

Preview Lab → · Contrast checker → · Palette generator →

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