#7C8A2E#7C8A2E

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

Color values

HEX#7C8A2E
RGBrgb(124, 138, 46)
HSLhsl(69, 50%, 36%)
HSVhsv(69, 67%, 54%)
CMYKcmyk(10.1%, 0%, 66.7%, 45.9%)
CIE-LABlab(54.72, -18.26, 45.76)
CIE-LCHlch(54.72, 49.27, 111.75°)
OKLaboklab(60.34% -0.0539 0.1038)
OKLCHoklch(60.34% 0.117 117.4)
XYZxyz(17.8942, 22.6595, 6.0153)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A2E #3C2E8A
analogous
#8A6A2E #7C8A2E #4E8A2E
triadic
#7C8A2E #2E7C8A #8A2E7C
tetradic
#7C8A2E #2E8A6A #3C2E8A #8A2E4E
square
#7C8A2E #2E8A6A #3C2E8A #8A2E4E
split-complementary
#7C8A2E #2E4E8A #6A2E8A
monochromatic
#2A2E0F #535C1F #7C8A2E #A5B83D #BDCC66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8A2E#FFFFFF#000000##000000
##7C8A2E1.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)
#938322
Deuteranopia (green-blind)
#928335
Tritanopia (blue-blind)
#838277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a2e;
/* rgb */ color: rgb(124, 138, 46);
/* oklch */ color: oklch(60.3% 0.117 117.4);
Tailwind
colors: {
  custom: {
    50: '#a4ac6c',
    500: '#7c8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a2e;
$custom-light: #a4ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a2e",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 69.13,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.60338,
    "c": 0.11694,
    "h": 117.4
  },
  "luminance": 0.22659
}

Semantic roles & 50–950 ramp

primary
#7C8A2E
secondary
#6D61B3
accent
#4EDA63
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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