#7C8E20#7C8E20

#7C8E20 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.131 H 118.8°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#7C8E20
RGBrgb(124, 142, 32)
HSLhsl(70, 63%, 34%)
HSVhsv(70, 77%, 56%)
CMYKcmyk(12.7%, 0%, 77.5%, 44.3%)
CIE-LABlab(55.82, -21.14, 52.28)
CIE-LCHlch(55.82, 56.39, 112.02°)
OKLaboklab(61.19% -0.0632 0.1151)
OKLCHoklch(61.19% 0.131 118.8)
XYZxyz(18.2463, 23.7355, 4.9864)
Luminance0.2374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E20 #32208E
analogous
#8E6920 #7C8E20 #458E20
triadic
#7C8E20 #207C8E #8E207C
tetradic
#7C8E20 #208E69 #32208E #8E2045
square
#7C8E20 #208E69 #32208E #8E2045
split-complementary
#7C8E20 #20458E #69208E
monochromatic
#252A09 #505C15 #7C8E20 #A8C02B #C2D851

Accessibility & contrast

On white

3.65
#7C8E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#7C8E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E20
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E20#FFFFFF#000000##000000
##7C8E201.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988605
Deuteranopia (green-blind)
#96862A
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e20;
/* rgb */ color: rgb(124, 142, 32);
/* oklch */ color: oklch(61.2% 0.131 118.8);
Tailwind
colors: {
  custom: {
    50: '#a5af65',
    500: '#7c8e20',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e20;
$custom-light: #a5af65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e20",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 32
  },
  "hsl": {
    "h": 69.818,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61194,
    "c": 0.13135,
    "h": 118.8
  },
  "luminance": 0.23735
}

Semantic roles & 50–950 ramp

primary
#7C8E20
secondary
#614FBB
accent
#42E65C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E20

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

Preview Lab → · Contrast checker → · Palette generator →

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