#7C8B2A#7C8B2A

#7C8B2A is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.5% C 0.121 H 117.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7C8B2A
RGBrgb(124, 139, 42)
HSLhsl(69, 54%, 35%)
HSVhsv(69, 70%, 55%)
CMYKcmyk(10.8%, 0%, 69.8%, 45.5%)
CIE-LABlab(54.99, -19.04, 47.72)
CIE-LCHlch(54.99, 51.38, 111.76°)
OKLaboklab(60.54% -0.0565 0.1073)
OKLCHoklch(60.54% 0.121 117.8)
XYZxyz(17.9631, 22.9177, 5.6673)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B2A #392A8B
analogous
#8B692A #7C8B2A #4C8B2A
triadic
#7C8B2A #2A7C8B #8B2A7C
tetradic
#7C8B2A #2A8B69 #392A8B #8B2A4C
square
#7C8B2A #2A8B69 #392A8B #8B2A4C
split-complementary
#7C8B2A #2A4C8B #692A8B
monochromatic
#282D0E #525C1C #7C8B2A #A6BA38 #BECF60

Accessibility & contrast

On white

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

On black

5.58
#7C8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B2A
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B2A#FFFFFF#000000##000000
##7C8B2A1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831B
Deuteranopia (green-blind)
#938431
Tritanopia (blue-blind)
#848378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8b2a;
/* rgb */ color: rgb(124, 139, 42);
/* oklch */ color: oklch(60.5% 0.121 117.8);
Tailwind
colors: {
  custom: {
    50: '#a5ac6a',
    500: '#7c8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b2a;
$custom-light: #a5ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b2a",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 69.278,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.12124,
    "h": 117.8
  },
  "luminance": 0.22917
}

Semantic roles & 50–950 ramp

primary
#7C8B2A
secondary
#6A5CB5
accent
#4BDD61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7C8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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