#7C8D1D#7C8D1D

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

Color values

HEX#7C8D1D
RGBrgb(124, 141, 29)
HSLhsl(69, 66%, 33%)
HSVhsv(69, 79%, 55%)
CMYKcmyk(12.1%, 0%, 79.4%, 44.7%)
CIE-LABlab(55.51, -20.77, 52.97)
CIE-LCHlch(55.51, 56.90, 111.41°)
OKLaboklab(60.93% -0.0625 0.1161)
OKLCHoklch(60.93% 0.132 118.3)
XYZxyz(18.0593, 23.4237, 4.7320)
Luminance0.2342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D1D #2E1D8D
analogous
#8D661D #7C8D1D #448D1D
triadic
#7C8D1D #1D7C8D #8D1D7C
tetradic
#7C8D1D #1D8D66 #2E1D8D #8D1D44
square
#7C8D1D #1D8D66 #2E1D8D #8D1D44
split-complementary
#7C8D1D #1D448D #661D8D
monochromatic
#232708 #4F5A13 #7C8D1D #A9C027 #C4DA4B

Accessibility & contrast

On white

3.69
#7C8D1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8D1D#FFFFFF#000000##000000
##7C8D1D1.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8d1d;
/* rgb */ color: rgb(124, 141, 29);
/* oklch */ color: oklch(60.9% 0.132 118.3);
Tailwind
colors: {
  custom: {
    50: '#a5ae63',
    500: '#7c8d1d',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d1d;
$custom-light: #a5ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d1d",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 69.107,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60934,
    "c": 0.1318,
    "h": 118.3
  },
  "luminance": 0.23424
}

Semantic roles & 50–950 ramp

primary
#7C8D1D
secondary
#5B4ABC
accent
#3FE959
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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