#7C8022#7C8022

#7C8022 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.114 H 111.9°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7C8022
RGBrgb(124, 128, 34)
HSLhsl(63, 58%, 32%)
HSVhsv(63, 73%, 50%)
CMYKcmyk(3.1%, 0%, 73.4%, 49.8%)
CIE-LABlab(51.66, -13.71, 47.59)
CIE-LCHlch(51.66, 49.52, 106.07°)
OKLaboklab(57.85% -0.0424 0.1056)
OKLCHoklch(57.85% 0.114 111.9)
XYZxyz(16.3206, 19.8393, 4.4827)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8022 #262280
analogous
#805522 #7C8022 #4D8022
triadic
#7C8022 #227C80 #80227C
tetradic
#7C8022 #228055 #262280 #80224D
square
#7C8022 #228055 #262280 #80224D
split-complementary
#7C8022 #224D80 #552280
monochromatic
#1E1F08 #4D5015 #7C8022 #ABB02F #CAD04D

Accessibility & contrast

On white

4.23
#7C8022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#7C8022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8022
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8022#FFFFFF#000000##000000
##7C80221.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A11
Deuteranopia (green-blind)
#8B7C29
Tritanopia (blue-blind)
#85786E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c8022;
/* rgb */ color: rgb(124, 128, 34);
/* oklch */ color: oklch(57.9% 0.114 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a464',
    500: '#7c8022',
    950: '#000000',
  },
}
SCSS
$custom: #7c8022;
$custom-light: #a5a464;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8022",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 62.553,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57853,
    "c": 0.1138,
    "h": 111.9
  },
  "luminance": 0.19839
}

Semantic roles & 50–950 ramp

primary
#7C8022
secondary
#504BB2
accent
#47E14D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8022

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

Preview Lab → · Contrast checker → · Palette generator →

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