#7C8E18#7C8E18

#7C8E18 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.135 H 118.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7C8E18
RGBrgb(124, 142, 24)
HSLhsl(69, 71%, 33%)
HSVhsv(69, 83%, 56%)
CMYKcmyk(12.7%, 0%, 83.1%, 44.3%)
CIE-LABlab(55.78, -21.48, 54.71)
CIE-LCHlch(55.78, 58.78, 111.44°)
OKLaboklab(61.15% -0.0648 0.1189)
OKLCHoklch(61.15% 0.135 118.6)
XYZxyz(18.1505, 23.6972, 4.4818)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8E18 #2A188E
analogous
#8E6518 #7C8E18 #418E18
triadic
#7C8E18 #187C8E #8E187C
tetradic
#7C8E18 #188E65 #2A188E #8E1841
square
#7C8E18 #188E65 #2A188E #8E1841
split-complementary
#7C8E18 #18418E #65188E
monochromatic
#212506 #4E5A0F #7C8E18 #AAC221 #C7DF41

Accessibility & contrast

On white

3.66
#7C8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7C8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8E18
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8E18#FFFFFF#000000##000000
##7C8E181.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#848679
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7c8e18;
/* rgb */ color: rgb(124, 142, 24);
/* oklch */ color: oklch(61.2% 0.135 118.6);
Tailwind
colors: {
  custom: {
    50: '#a5af62',
    500: '#7c8e18',
    950: '#000000',
  },
}
SCSS
$custom: #7c8e18;
$custom-light: #a5af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8e18",
  "rgb": {
    "r": 124,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 69.153,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6115,
    "c": 0.13538,
    "h": 118.6
  },
  "luminance": 0.23697
}

Semantic roles & 50–950 ramp

primary
#7C8E18
secondary
#5542C0
accent
#3AEE55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7C8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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