#7C8A1A#7C8A1A

#7C8A1A is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.130 H 116.9°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7C8A1A
RGBrgb(124, 138, 26)
HSLhsl(68, 68%, 32%)
HSVhsv(68, 81%, 54%)
CMYKcmyk(10.1%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.59, -19.35, 53.08)
CIE-LCHlch(54.59, 56.49, 110.03°)
OKLaboklab(60.19% -0.0588 0.1157)
OKLCHoklch(60.19% 0.13 116.9)
XYZxyz(17.5876, 22.5369, 4.4006)
Luminance0.2254 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8A1A #281A8A
analogous
#8A601A #7C8A1A #448A1A
triadic
#7C8A1A #1A7C8A #8A1A7C
tetradic
#7C8A1A #1A8A60 #281A8A #8A1A44
square
#7C8A1A #1A8A60 #281A8A #8A1A44
split-complementary
#7C8A1A #1A448A #601A8A
monochromatic
#1F2307 #4E5710 #7C8A1A #AABD24 #C8DC43

Accessibility & contrast

On white

3.81
#7C8A1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7C8A1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8A1A
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8A1A#FFFFFF#000000##000000
##7C8A1A1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938325
Tritanopia (blue-blind)
#848276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8a1a;
/* rgb */ color: rgb(124, 138, 26);
/* oklch */ color: oklch(60.2% 0.130 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7c8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8a1a;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8a1a",
  "rgb": {
    "r": 124,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 67.5,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60194,
    "c": 0.12981,
    "h": 116.9
  },
  "luminance": 0.22537
}

Semantic roles & 50–950 ramp

primary
#7C8A1A
secondary
#5243BD
accent
#3DEB52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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