#7C8B2E#7C8B2E

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

Color values

HEX#7C8B2E
RGBrgb(124, 139, 46)
HSLhsl(70, 50%, 36%)
HSVhsv(70, 67%, 55%)
CMYKcmyk(10.8%, 0%, 66.9%, 45.5%)
CIE-LABlab(55.02, -18.78, 46.07)
CIE-LCHlch(55.02, 49.75, 112.18°)
OKLaboklab(60.58% -0.0553 0.1044)
OKLCHoklch(60.58% 0.118 117.9)
XYZxyz(18.0383, 22.9477, 6.0633)
Luminance0.2295 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B2E #3D2E8B
analogous
#8B6C2E #7C8B2E #4E8B2E
triadic
#7C8B2E #2E7C8B #8B2E7C
tetradic
#7C8B2E #2E8B6C #3D2E8B #8B2E4E
square
#7C8B2E #2E8B6C #3D2E8B #8B2E4E
split-complementary
#7C8B2E #2E4E8B #6C2E8B
monochromatic
#2A2F10 #535D1F #7C8B2E #A5B93D #BCCD67

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8B2E#FFFFFF#000000##000000
##7C8B2E1.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)
#948321
Deuteranopia (green-blind)
#938435
Tritanopia (blue-blind)
#838378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8b2e;
/* rgb */ color: rgb(124, 139, 46);
/* oklch */ color: oklch(60.6% 0.118 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac6c',
    500: '#7c8b2e',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b2e;
$custom-light: #a4ac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b2e",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 69.677,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60578,
    "c": 0.1182,
    "h": 117.9
  },
  "luminance": 0.22948
}

Semantic roles & 50–950 ramp

primary
#7C8B2E
secondary
#6F61B3
accent
#4EDA65
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #7C8B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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