#7C9818#7C9818

#7C9818 is a light, vivid yellow-green. Relative luminance 0.268; OKLCH L 63.6% C 0.147 H 122.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#7C9818
RGBrgb(124, 152, 24)
HSLhsl(73, 73%, 35%)
HSVhsv(73, 84%, 60%)
CMYKcmyk(18.4%, 0%, 84.2%, 40.4%)
CIE-LABlab(58.80, -26.47, 57.34)
CIE-LCHlch(58.80, 63.15, 114.78°)
OKLaboklab(63.58% -0.0784 0.1245)
OKLCHoklch(63.58% 0.147 122.2)
XYZxyz(19.7056, 26.8075, 5.0002)
Luminance0.2681 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C9818 #341898
analogous
#987418 #7C9818 #3C9818
triadic
#7C9818 #187C98 #98187C
tetradic
#7C9818 #189874 #341898 #98183C
square
#7C9818 #189874 #341898 #98183C
split-complementary
#7C9818 #183C98 #741898
monochromatic
#262E07 #516310 #7C9818 #A7CD20 #C0E248

Accessibility & contrast

On white

3.30
#7C9818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#7C9818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C9818
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C9818#FFFFFF#000000##000000
##7C98181.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A28E00
Deuteranopia (green-blind)
#9E8D27
Tritanopia (blue-blind)
#839081
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #7c9818;
/* rgb */ color: rgb(124, 152, 24);
/* oklch */ color: oklch(63.6% 0.147 122.2);
Tailwind
colors: {
  custom: {
    50: '#a6b663',
    500: '#7c9818',
    950: '#000000',
  },
}
SCSS
$custom: #7c9818;
$custom-light: #a6b663;
$custom-dark: #000000;
JSON
{
  "hex": "#7c9818",
  "rgb": {
    "r": 124,
    "g": 152,
    "b": 24
  },
  "hsl": {
    "h": 73.125,
    "s": 72.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.63581,
    "c": 0.14712,
    "h": 122.2
  },
  "luminance": 0.26808
}

Semantic roles & 50–950 ramp

primary
#7C9818
secondary
#6348C4
accent
#38EF60
background
#FAFBF6
surface
#F4F6EB
border
#CED0C6
text
#101106
muted
#7F807A

Preview Lab

Preview with #7C9818

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

Preview Lab → · Contrast checker → · Palette generator →

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