#7C8C1D#7C8C1D

#7C8C1D is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.7% C 0.131 H 117.9°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7C8C1D
RGBrgb(124, 140, 29)
HSLhsl(69, 66%, 33%)
HSVhsv(69, 79%, 55%)
CMYKcmyk(11.4%, 0%, 79.3%, 45.1%)
CIE-LABlab(55.21, -20.26, 52.70)
CIE-LCHlch(55.21, 56.45, 111.03°)
OKLaboklab(60.69% -0.061 0.1155)
OKLCHoklch(60.69% 0.131 117.9)
XYZxyz(17.9125, 23.1301, 4.6831)
Luminance0.2313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C1D #2D1D8C
analogous
#8C641D #7C8C1D #448C1D
triadic
#7C8C1D #1D7C8C #8C1D7C
tetradic
#7C8C1D #1D8C64 #2D1D8C #8C1D44
square
#7C8C1D #1D8C64 #2D1D8C #8C1D44
split-complementary
#7C8C1D #1D448C #641D8C
monochromatic
#222708 #4F5912 #7C8C1D #A9BF28 #C5D94A

Accessibility & contrast

On white

3.73
#7C8C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#7C8C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8C1D
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8C1D#FFFFFF#000000##000000
##7C8C1D1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948528
Tritanopia (blue-blind)
#848477
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7c8c1d;
/* rgb */ color: rgb(124, 140, 29);
/* oklch */ color: oklch(60.7% 0.131 117.9);
Tailwind
colors: {
  custom: {
    50: '#a5ad63',
    500: '#7c8c1d',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c1d;
$custom-light: #a5ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c1d",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 68.649,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60693,
    "c": 0.13062,
    "h": 117.9
  },
  "luminance": 0.2313
}

Semantic roles & 50–950 ramp

primary
#7C8C1D
secondary
#5A49BC
accent
#3FE958
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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