#7C7822#7C7822

#7C7822 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 56.0% C 0.105 H 106.7°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7C7822
RGBrgb(124, 120, 34)
HSLhsl(57, 57%, 31%)
HSVhsv(57, 73%, 49%)
CMYKcmyk(0%, 3.2%, 72.6%, 51.4%)
CIE-LABlab(49.29, -9.34, 45.28)
CIE-LCHlch(49.29, 46.23, 101.66°)
OKLaboklab(55.97% -0.0302 0.1007)
OKLCHoklch(55.97% 0.105 106.7)
XYZxyz(15.3180, 17.8341, 4.1485)
Luminance0.1783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7822 #22267C
analogous
#7C4B22 #7C7822 #537C22
triadic
#7C7822 #227C78 #78227C
tetradic
#7C7822 #227C4B #22267C #7C2253
square
#7C7822 #227C4B #22267C #7C2253
split-complementary
#7C7822 #22537C #4B227C
monochromatic
#1C1B08 #4C4A15 #7C7822 #ACA62F #CEC84B

Accessibility & contrast

On white

4.60
#7C7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7C7822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C7822
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7822#FFFFFF#000000##FFFFFF
##7C78221.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837314
Deuteranopia (green-blind)
#847728
Tritanopia (blue-blind)
#857067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c7822;
/* rgb */ color: rgb(124, 120, 34);
/* oklch */ color: oklch(56.0% 0.105 106.7);
Tailwind
colors: {
  custom: {
    50: '#a59e63',
    500: '#7c7822',
    950: '#000000',
  },
}
SCSS
$custom: #7c7822;
$custom-light: #a59e63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7822",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 57.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55967,
    "c": 0.10515,
    "h": 106.7
  },
  "luminance": 0.17834
}

Semantic roles & 50–950 ramp

primary
#7C7822
secondary
#4B50AF
accent
#4EE048
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7C7822

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

Preview Lab → · Contrast checker → · Palette generator →

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