#7C8720#7C8720

#7C8720 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.123 H 115.6°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7C8720
RGBrgb(124, 135, 32)
HSLhsl(66, 62%, 33%)
HSVhsv(66, 76%, 53%)
CMYKcmyk(8.1%, 0%, 76.3%, 47.1%)
CIE-LABlab(53.73, -17.53, 50.31)
CIE-LCHlch(53.73, 53.27, 109.21°)
OKLaboklab(59.51% -0.0532 0.111)
OKLCHoklch(59.51% 0.123 115.6)
XYZxyz(17.2373, 21.7176, 4.6501)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8720 #2B2087
analogous
#875F20 #7C8720 #488720
triadic
#7C8720 #207C87 #87207C
tetradic
#7C8720 #20875F #2B2087 #872048
square
#7C8720 #20875F #2B2087 #872048
split-complementary
#7C8720 #204887 #5F2087
monochromatic
#212409 #4F5614 #7C8720 #A9B82C #C6D54D

Accessibility & contrast

On white

3.93
#7C8720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7C8720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8720
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8720#FFFFFF#000000##000000
##7C87201.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918009
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#847F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c8720;
/* rgb */ color: rgb(124, 135, 32);
/* oklch */ color: oklch(59.5% 0.123 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a964',
    500: '#7c8720',
    950: '#000000',
  },
}
SCSS
$custom: #7c8720;
$custom-light: #a5a964;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8720",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 66.408,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59509,
    "c": 0.12308,
    "h": 115.6
  },
  "luminance": 0.21717
}

Semantic roles & 50–950 ramp

primary
#7C8720
secondary
#574BB8
accent
#43E554
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8720

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

Preview Lab → · Contrast checker → · Palette generator →

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