#7C8F18#7C8F18

#7C8F18 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.4% C 0.137 H 119.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7C8F18
RGBrgb(124, 143, 24)
HSLhsl(70, 71%, 33%)
HSVhsv(70, 83%, 56%)
CMYKcmyk(13.3%, 0%, 83.2%, 43.9%)
CIE-LABlab(56.08, -21.99, 54.97)
CIE-LCHlch(56.08, 59.21, 111.80°)
OKLaboklab(61.39% -0.0662 0.1194)
OKLCHoklch(61.39% 0.137 119)
XYZxyz(18.2999, 23.9961, 4.5316)
Luminance0.2400 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8F18 #2B188F
analogous
#8F6618 #7C8F18 #408F18
triadic
#7C8F18 #187C8F #8F187C
tetradic
#7C8F18 #188F66 #2B188F #8F1840
square
#7C8F18 #188F66 #2B188F #8F1840
split-complementary
#7C8F18 #18408F #66188F
monochromatic
#212606 #4F5B0F #7C8F18 #A9C321 #C6DF42

Accessibility & contrast

On white

3.62
#7C8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#7C8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8F18
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8F18#FFFFFF#000000##000000
##7C8F181.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#978725
Tritanopia (blue-blind)
#84877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8f18;
/* rgb */ color: rgb(124, 143, 24);
/* oklch */ color: oklch(61.4% 0.137 119.0);
Tailwind
colors: {
  custom: {
    50: '#a5af62',
    500: '#7c8f18',
    950: '#000000',
  },
}
SCSS
$custom: #7c8f18;
$custom-light: #a5af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8f18",
  "rgb": {
    "r": 124,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 69.58,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61392,
    "c": 0.13654,
    "h": 119
  },
  "luminance": 0.23996
}

Semantic roles & 50–950 ramp

primary
#7C8F18
secondary
#5743C0
accent
#3AEE57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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