#7C822B#7C822B

#7C822B is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.4% C 0.110 H 113.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7C822B
RGBrgb(124, 130, 43)
HSLhsl(64, 50%, 34%)
HSVhsv(64, 67%, 51%)
CMYKcmyk(4.6%, 0%, 66.9%, 49%)
CIE-LABlab(52.31, -14.24, 44.55)
CIE-LCHlch(52.31, 46.77, 107.72°)
OKLaboklab(58.4% -0.043 0.1008)
OKLCHoklch(58.4% 0.11 113.1)
XYZxyz(16.7313, 20.4251, 5.3461)
Luminance0.2042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C822B #312B82
analogous
#825D2B #7C822B #51822B
triadic
#7C822B #2B7C82 #822B7C
tetradic
#7C822B #2B825D #312B82 #822B51
square
#7C822B #2B825D #312B82 #822B51
split-complementary
#7C822B #2B5182 #5D2B82
monochromatic
#24260D #50541C #7C822B #A8B03A #C2CA5E

Accessibility & contrast

On white

4.13
#7C822B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#7C822B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C822B
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C822B#FFFFFF#000000##000000
##7C822B1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1F
Deuteranopia (green-blind)
#8C7E31
Tritanopia (blue-blind)
#847A70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c822b;
/* rgb */ color: rgb(124, 130, 43);
/* oklch */ color: oklch(58.4% 0.110 113.1);
Tailwind
colors: {
  custom: {
    50: '#a4a669',
    500: '#7c822b',
    950: '#000000',
  },
}
SCSS
$custom: #7c822b;
$custom-light: #a4a669;
$custom-dark: #000000;
JSON
{
  "hex": "#7c822b",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 43
  },
  "hsl": {
    "h": 64.138,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.58401,
    "c": 0.10954,
    "h": 113.1
  },
  "luminance": 0.20425
}

Semantic roles & 50–950 ramp

primary
#7C822B
secondary
#5F59B0
accent
#4EDA58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7C822B

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

Preview Lab → · Contrast checker → · Palette generator →

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