#7C8D18#7C8D18

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

Color values

HEX#7C8D18
RGBrgb(124, 141, 24)
HSLhsl(69, 71%, 32%)
HSVhsv(69, 83%, 55%)
CMYKcmyk(12.1%, 0%, 83%, 44.7%)
CIE-LABlab(55.48, -20.97, 54.45)
CIE-LCHlch(55.48, 58.35, 111.07°)
OKLaboklab(60.91% -0.0634 0.1183)
OKLCHoklch(60.91% 0.134 118.2)
XYZxyz(18.0024, 23.4010, 4.4324)
Luminance0.2340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8D18 #29188D
analogous
#8D6418 #7C8D18 #428D18
triadic
#7C8D18 #187C8D #8D187C
tetradic
#7C8D18 #188D64 #29188D #8D1842
square
#7C8D18 #188D64 #29188D #8D1842
split-complementary
#7C8D18 #18428D #64188D
monochromatic
#202406 #4E590F #7C8D18 #AAC121 #C8DF41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C8D18#FFFFFF#000000##000000
##7C8D181.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)
#958524
Tritanopia (blue-blind)
#848578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7c8d18;
/* rgb */ color: rgb(124, 141, 24);
/* oklch */ color: oklch(60.9% 0.134 118.2);
Tailwind
colors: {
  custom: {
    50: '#a5ae61',
    500: '#7c8d18',
    950: '#000000',
  },
}
SCSS
$custom: #7c8d18;
$custom-light: #a5ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8d18",
  "rgb": {
    "r": 124,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 68.718,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60908,
    "c": 0.13421,
    "h": 118.2
  },
  "luminance": 0.23401
}

Semantic roles & 50–950 ramp

primary
#7C8D18
secondary
#5442BF
accent
#3AEE54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8D18

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

Preview Lab → · Contrast checker → · Palette generator →

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