#7C842B#7C842B

#7C842B is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.112 H 114.2°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7C842B
RGBrgb(124, 132, 43)
HSLhsl(65, 51%, 34%)
HSVhsv(65, 67%, 52%)
CMYKcmyk(6.1%, 0%, 67.4%, 48.2%)
CIE-LABlab(52.91, -15.31, 45.17)
CIE-LCHlch(52.91, 47.69, 108.72°)
OKLaboklab(58.88% -0.046 0.1021)
OKLCHoklch(58.88% 0.112 114.2)
XYZxyz(16.9999, 20.9623, 5.4356)
Luminance0.2096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C842B #332B84
analogous
#84602B #7C842B #50842B
triadic
#7C842B #2B7C84 #842B7C
tetradic
#7C842B #2B8460 #332B84 #842B50
square
#7C842B #2B8460 #332B84 #842B50
split-complementary
#7C842B #2B5084 #602B84
monochromatic
#25280D #51561C #7C842B #A7B23A #C1CB5F

Accessibility & contrast

On white

4.04
#7C842B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7C842B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C842B
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C842B#FFFFFF#000000##000000
##7C842B1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1F
Deuteranopia (green-blind)
#8D7F31
Tritanopia (blue-blind)
#847C72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c842b;
/* rgb */ color: rgb(124, 132, 43);
/* oklch */ color: oklch(58.9% 0.112 114.2);
Tailwind
colors: {
  custom: {
    50: '#a4a769',
    500: '#7c842b',
    950: '#000000',
  },
}
SCSS
$custom: #7c842b;
$custom-light: #a4a769;
$custom-dark: #000000;
JSON
{
  "hex": "#7c842b",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 43
  },
  "hsl": {
    "h": 65.393,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58877,
    "c": 0.11193,
    "h": 114.2
  },
  "luminance": 0.20962
}

Semantic roles & 50–950 ramp

primary
#7C842B
secondary
#625AB1
accent
#4DDA5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7C842B

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

Preview Lab → · Contrast checker → · Palette generator →

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