#7C8D31#7C8D31

#7C8D31 is a mid, moderate yellow-green. Relative luminance 0.236; OKLCH L 61.1% C 0.118 H 119.0°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#7C8D31
RGBrgb(124, 141, 49)
HSLhsl(71, 48%, 37%)
HSVhsv(71, 65%, 55%)
CMYKcmyk(12.1%, 0%, 65.2%, 44.7%)
CIE-LABlab(55.64, -19.60, 45.42)
CIE-LCHlch(55.64, 49.47, 113.34°)
OKLaboklab(61.09% -0.0573 0.1035)
OKLCHoklch(61.09% 0.118 119)
XYZxyz(18.3917, 23.5567, 6.4831)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D31 #42318D
analogous
#8D7031 #7C8D31 #4E8D31
triadic
#7C8D31 #317C8D #8D317C
tetradic
#7C8D31 #318D70 #42318D #8D314E
square
#7C8D31 #318D70 #42318D #8D314E
split-complementary
#7C8D31 #314E8D #70318D
monochromatic
#2C3211 #546021 #7C8D31 #A4BA41 #BACC6C

Accessibility & contrast

On white

3.68
#7C8D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#7C8D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D31
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D31#FFFFFF#000000##000000
##7C8D311.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#968525
Deuteranopia (green-blind)
#948637
Tritanopia (blue-blind)
#83867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d31;
/* rgb */ color: rgb(124, 141, 49);
/* oklch */ color: oklch(61.1% 0.118 119.0);
Tailwind
colors: {
  custom: {
    50: '#a4ae6e',
    500: '#7c8d31',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d31;
$custom-light: #a4ae6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d31",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 71.087,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.61086,
    "c": 0.11833,
    "h": 119
  },
  "luminance": 0.23557
}

Semantic roles & 50–950 ramp

primary
#7C8D31
secondary
#7566B4
accent
#50D869
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8D31

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

Preview Lab → · Contrast checker → · Palette generator →

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