#7C8A2F#7C8A2F

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

Color values

HEX#7C8A2F
RGBrgb(124, 138, 47)
HSLhsl(69, 49%, 36%)
HSVhsv(69, 66%, 54%)
CMYKcmyk(10.1%, 0%, 65.9%, 45.9%)
CIE-LABlab(54.73, -18.19, 45.33)
CIE-LCHlch(54.73, 48.85, 111.86°)
OKLaboklab(60.35% -0.0536 0.103)
OKLCHoklch(60.35% 0.116 117.5)
XYZxyz(17.9141, 22.6675, 6.1203)
Luminance0.2267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A2F #3D2F8A
analogous
#8A6B2F #7C8A2F #4F8A2F
triadic
#7C8A2F #2F7C8A #8A2F7C
tetradic
#7C8A2F #2F8A6B #3D2F8A #8A2F4F
square
#7C8A2F #2F8A6B #3D2F8A #8A2F4F
split-complementary
#7C8A2F #2F4F8A #6B2F8A
monochromatic
#2A2F10 #535C1F #7C8A2F #A5B83F #BCCC68

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7c8a2f;
/* rgb */ color: rgb(124, 138, 47);
/* oklch */ color: oklch(60.3% 0.116 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ac6c',
    500: '#7c8a2f',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a2f;
$custom-light: #a4ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a2f",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 47
  },
  "hsl": {
    "h": 69.231,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60347,
    "c": 0.11614,
    "h": 117.5
  },
  "luminance": 0.22667
}

Semantic roles & 50–950 ramp

primary
#7C8A2F
secondary
#6F62B3
accent
#4FD964
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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