#7C8D1A#7C8D1A

#7C8D1A is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 60.9% C 0.133 H 118.2°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7C8D1A
RGBrgb(124, 141, 26)
HSLhsl(69, 69%, 33%)
HSVhsv(69, 82%, 55%)
CMYKcmyk(12.1%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.49, -20.90, 53.88)
CIE-LCHlch(55.49, 57.79, 111.20°)
OKLaboklab(60.92% -0.063 0.1175)
OKLCHoklch(60.92% 0.133 118.2)
XYZxyz(18.0239, 23.4096, 4.5461)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D1A #2B1A8D
analogous
#8D651A #7C8D1A #428D1A
triadic
#7C8D1A #1A7C8D #8D1A7C
tetradic
#7C8D1A #1A8D65 #2B1A8D #8D1A42
square
#7C8D1A #1A8D65 #2B1A8D #8D1A42
split-complementary
#7C8D1A #1A428D #651A8D
monochromatic
#212607 #4F5910 #7C8D1A #A9C124 #C6DD45

Accessibility & contrast

On white

3.70
#7C8D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#7C8D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8D1A
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8D1A#FFFFFF#000000##000000
##7C8D1A1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958526
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d1a;
/* rgb */ color: rgb(124, 141, 26);
/* oklch */ color: oklch(60.9% 0.133 118.2);
Tailwind
colors: {
  custom: {
    50: '#a5ae62',
    500: '#7c8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d1a;
$custom-light: #a5ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d1a",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 68.87,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.60918,
    "c": 0.13329,
    "h": 118.2
  },
  "luminance": 0.23409
}

Semantic roles & 50–950 ramp

primary
#7C8D1A
secondary
#5745BE
accent
#3CEC56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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