#7C8E1A#7C8E1A

#7C8E1A is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.134 H 118.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7C8E1A
RGBrgb(124, 142, 26)
HSLhsl(69, 69%, 33%)
HSVhsv(69, 82%, 56%)
CMYKcmyk(12.7%, 0%, 81.7%, 44.3%)
CIE-LABlab(55.79, -21.40, 54.15)
CIE-LCHlch(55.79, 58.22, 111.57°)
OKLaboklab(61.16% -0.0644 0.118)
OKLCHoklch(61.16% 0.134 118.6)
XYZxyz(18.1721, 23.7058, 4.5955)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E1A #2C1A8E
analogous
#8E661A #7C8E1A #428E1A
triadic
#7C8E1A #1A7C8E #8E1A7C
tetradic
#7C8E1A #1A8E66 #2C1A8E #8E1A42
square
#7C8E1A #1A8E66 #2C1A8E #8E1A42
split-complementary
#7C8E1A #1A428E #661A8E
monochromatic
#222707 #4F5A11 #7C8E1A #A9C223 #C5DD45

Accessibility & contrast

On white

3.66
#7C8E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7C8E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E1A
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E1A#FFFFFF#000000##000000
##7C8E1A1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968626
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e1a;
/* rgb */ color: rgb(124, 142, 26);
/* oklch */ color: oklch(61.2% 0.134 118.6);
Tailwind
colors: {
  custom: {
    50: '#a5af62',
    500: '#7c8e1a',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e1a;
$custom-light: #a5af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e1a",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 69.31,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.6116,
    "c": 0.13446,
    "h": 118.6
  },
  "luminance": 0.23706
}

Semantic roles & 50–950 ramp

primary
#7C8E1A
secondary
#5845BE
accent
#3CEC57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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