#7C8B2F#7C8B2F

#7C8B2F is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.6% C 0.117 H 118.0°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7C8B2F
RGBrgb(124, 139, 47)
HSLhsl(70, 49%, 36%)
HSVhsv(70, 66%, 55%)
CMYKcmyk(10.8%, 0%, 66.2%, 45.5%)
CIE-LABlab(55.03, -18.71, 45.65)
CIE-LCHlch(55.03, 49.33, 112.29°)
OKLaboklab(60.59% -0.055 0.1037)
OKLCHoklch(60.59% 0.117 118)
XYZxyz(18.0582, 22.9557, 6.1684)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B2F #3E2F8B
analogous
#8B6C2F #7C8B2F #4E8B2F
triadic
#7C8B2F #2F7C8B #8B2F7C
tetradic
#7C8B2F #2F8B6C #3E2F8B #8B2F4E
square
#7C8B2F #2F8B6C #3E2F8B #8B2F4E
split-complementary
#7C8B2F #2F4E8B #6C2F8B
monochromatic
#2A3010 #535D20 #7C8B2F #A5B93E #BCCC68

Accessibility & contrast

On white

3.76
#7C8B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#7C8B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B2F
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B2F#FFFFFF#000000##000000
##7C8B2F1.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948423
Deuteranopia (green-blind)
#938436
Tritanopia (blue-blind)
#838378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8b2f;
/* rgb */ color: rgb(124, 139, 47);
/* oklch */ color: oklch(60.6% 0.117 118.0);
Tailwind
colors: {
  custom: {
    50: '#a4ac6c',
    500: '#7c8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b2f;
$custom-light: #a4ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b2f",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 69.783,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.11741,
    "h": 118
  },
  "luminance": 0.22956
}

Semantic roles & 50–950 ramp

primary
#7C8B2F
secondary
#7063B3
accent
#4FD965
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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