#7C8722#7C8722

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

Color values

HEX#7C8722
RGBrgb(124, 135, 34)
HSLhsl(67, 60%, 33%)
HSVhsv(67, 75%, 53%)
CMYKcmyk(8.1%, 0%, 74.8%, 47.1%)
CIE-LABlab(53.74, -17.42, 49.60)
CIE-LCHlch(53.74, 52.57, 109.36°)
OKLaboklab(59.52% -0.0528 0.1098)
OKLCHoklch(59.52% 0.122 115.7)
XYZxyz(17.2653, 21.7288, 4.7976)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8722 #2D2287
analogous
#875F22 #7C8722 #498722
triadic
#7C8722 #227C87 #87227C
tetradic
#7C8722 #22875F #2D2287 #872249
square
#7C8722 #22875F #2D2287 #872249
split-complementary
#7C8722 #224987 #5F2287
monochromatic
#222509 #4F5616 #7C8722 #A9B82E #C5D350

Accessibility & contrast

On white

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

On black

5.35
#7C8722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8722
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8722#FFFFFF#000000##000000
##7C87221.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#847F74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c8722;
/* rgb */ color: rgb(124, 135, 34);
/* oklch */ color: oklch(59.5% 0.122 115.7);
Tailwind
colors: {
  custom: {
    50: '#a5a965',
    500: '#7c8722',
    950: '#000000',
  },
}
SCSS
$custom: #7c8722;
$custom-light: #a5a965;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8722",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 66.535,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59522,
    "c": 0.12185,
    "h": 115.7
  },
  "luminance": 0.21729
}

Semantic roles & 50–950 ramp

primary
#7C8722
secondary
#5A4EB7
accent
#45E356
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7C8722

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

Preview Lab → · Contrast checker → · Palette generator →

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