#7C8122#7C8122

#7C8122 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.115 H 112.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7C8122
RGBrgb(124, 129, 34)
HSLhsl(63, 58%, 32%)
HSVhsv(63, 74%, 51%)
CMYKcmyk(3.9%, 0%, 73.6%, 49.4%)
CIE-LABlab(51.95, -14.24, 47.88)
CIE-LCHlch(51.95, 49.95, 106.57°)
OKLaboklab(58.09% -0.0439 0.1062)
OKLCHoklch(58.09% 0.115 112.5)
XYZxyz(16.4517, 20.1015, 4.5264)
Luminance0.2010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8122 #272281
analogous
#815722 #7C8122 #4D8122
triadic
#7C8122 #227C81 #81227C
tetradic
#7C8122 #228157 #272281 #81224D
square
#7C8122 #228157 #272281 #81224D
split-complementary
#7C8122 #224D81 #572281
monochromatic
#1F2008 #4D5115 #7C8122 #ABB12F #C9D04D

Accessibility & contrast

On white

4.18
#7C8122 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#7C8122 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8122
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8122#FFFFFF#000000##000000
##7C81221.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B11
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#85796F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7c8122;
/* rgb */ color: rgb(124, 129, 34);
/* oklch */ color: oklch(58.1% 0.115 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a564',
    500: '#7c8122',
    950: '#000000',
  },
}
SCSS
$custom: #7c8122;
$custom-light: #a5a564;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8122",
  "rgb": {
    "r": 124,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 63.158,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5809,
    "c": 0.11493,
    "h": 112.5
  },
  "luminance": 0.20101
}

Semantic roles & 50–950 ramp

primary
#7C8122
secondary
#514BB3
accent
#46E14E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8122

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

Preview Lab → · Contrast checker → · Palette generator →

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