#7C8222#7C8222

#7C8222 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.3% C 0.116 H 113.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7C8222
RGBrgb(124, 130, 34)
HSLhsl(64, 59%, 32%)
HSVhsv(64, 74%, 51%)
CMYKcmyk(4.6%, 0%, 73.8%, 49%)
CIE-LABlab(52.25, -14.78, 48.16)
CIE-LCHlch(52.25, 50.38, 107.06°)
OKLaboklab(58.33% -0.0454 0.1068)
OKLCHoklch(58.33% 0.116 113)
XYZxyz(16.5840, 20.3662, 4.5705)
Luminance0.2037 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8222 #282282
analogous
#825822 #7C8222 #4C8222
triadic
#7C8222 #227C82 #82227C
tetradic
#7C8222 #228258 #282282 #82224C
square
#7C8222 #228258 #282282 #82224C
split-complementary
#7C8222 #224C82 #582282
monochromatic
#1F2109 #4E5115 #7C8222 #AAB32F #C8D14E

Accessibility & contrast

On white

4.14
#7C8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#7C8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8222
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8222#FFFFFF#000000##000000
##7C82221.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C10
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#857A6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7c8222;
/* rgb */ color: rgb(124, 130, 34);
/* oklch */ color: oklch(58.3% 0.116 113.0);
Tailwind
colors: {
  custom: {
    50: '#a5a664',
    500: '#7c8222',
    950: '#000000',
  },
}
SCSS
$custom: #7c8222;
$custom-light: #a5a664;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8222",
  "rgb": {
    "r": 124,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 63.75,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58328,
    "c": 0.11607,
    "h": 113
  },
  "luminance": 0.20366
}

Semantic roles & 50–950 ramp

primary
#7C8222
secondary
#524CB4
accent
#46E250
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8222

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

Preview Lab → · Contrast checker → · Palette generator →

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