#7C8A2D#7C8A2D

#7C8A2D is a mid, moderate yellow. Relative luminance 0.227; OKLCH L 60.3% C 0.118 H 117.4°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7C8A2D
RGBrgb(124, 138, 45)
HSLhsl(69, 51%, 36%)
HSVhsv(69, 67%, 54%)
CMYKcmyk(10.1%, 0%, 67.4%, 45.9%)
CIE-LABlab(54.71, -18.33, 46.18)
CIE-LCHlch(54.71, 49.68, 111.65°)
OKLaboklab(60.33% -0.0542 0.1045)
OKLCHoklch(60.33% 0.118 117.4)
XYZxyz(17.8747, 22.6517, 5.9127)
Luminance0.2265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A2D #3B2D8A
analogous
#8A692D #7C8A2D #4D8A2D
triadic
#7C8A2D #2D7C8A #8A2D7C
tetradic
#7C8A2D #2D8A69 #3B2D8A #8A2D4D
square
#7C8A2D #2D8A69 #3B2D8A #8A2D4D
split-complementary
#7C8A2D #2D4D8A #692D8A
monochromatic
#292E0F #535C1E #7C8A2D #A5B83C #BDCD65

Accessibility & contrast

On white

3.80
#7C8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7C8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A2D
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A2D#FFFFFF#000000##000000
##7C8A2D1.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938320
Deuteranopia (green-blind)
#928334
Tritanopia (blue-blind)
#848277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a2d;
/* rgb */ color: rgb(124, 138, 45);
/* oklch */ color: oklch(60.3% 0.118 117.4);
Tailwind
colors: {
  custom: {
    50: '#a4ac6b',
    500: '#7c8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a2d;
$custom-light: #a4ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a2d",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 69.032,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60329,
    "c": 0.11772,
    "h": 117.4
  },
  "luminance": 0.22652
}

Semantic roles & 50–950 ramp

primary
#7C8A2D
secondary
#6C60B3
accent
#4DDA63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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