#7C8B1A#7C8B1A

#7C8B1A is a mid, vivid yellow. Relative luminance 0.228; OKLCH L 60.4% C 0.131 H 117.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7C8B1A
RGBrgb(124, 139, 26)
HSLhsl(68, 68%, 32%)
HSVhsv(68, 81%, 55%)
CMYKcmyk(10.8%, 0%, 81.3%, 45.5%)
CIE-LABlab(54.89, -19.87, 53.34)
CIE-LCHlch(54.89, 56.92, 110.43°)
OKLaboklab(60.44% -0.0602 0.1163)
OKLCHoklch(60.44% 0.131 117.4)
XYZxyz(17.7317, 22.8251, 4.4487)
Luminance0.2283 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8B1A #291A8B
analogous
#8B621A #7C8B1A #438B1A
triadic
#7C8B1A #1A7C8B #8B1A7C
tetradic
#7C8B1A #1A8B62 #291A8B #8B1A43
square
#7C8B1A #1A8B62 #291A8B #8B1A43
split-complementary
#7C8B1A #1A438B #621A8B
monochromatic
#202407 #4E5710 #7C8B1A #AABF24 #C8DC43

Accessibility & contrast

On white

3.77
#7C8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7C8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8B1A
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8B1A#FFFFFF#000000##000000
##7C8B1A1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938425
Tritanopia (blue-blind)
#848376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7c8b1a;
/* rgb */ color: rgb(124, 139, 26);
/* oklch */ color: oklch(60.4% 0.131 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7c8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8b1a;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8b1a",
  "rgb": {
    "r": 124,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 67.965,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60435,
    "c": 0.13098,
    "h": 117.4
  },
  "luminance": 0.22825
}

Semantic roles & 50–950 ramp

primary
#7C8B1A
secondary
#5444BD
accent
#3CEB54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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