#7C8C18#7C8C18

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

Color values

HEX#7C8C18
RGBrgb(124, 140, 24)
HSLhsl(68, 71%, 32%)
HSVhsv(68, 83%, 55%)
CMYKcmyk(11.4%, 0%, 82.9%, 45.1%)
CIE-LABlab(55.18, -20.46, 54.18)
CIE-LCHlch(55.18, 57.92, 110.69°)
OKLaboklab(60.67% -0.062 0.1177)
OKLCHoklch(60.67% 0.133 117.8)
XYZxyz(17.8556, 23.1074, 4.3835)
Luminance0.2311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8C18 #28188C
analogous
#8C6218 #7C8C18 #428C18
triadic
#7C8C18 #187C8C #8C187C
tetradic
#7C8C18 #188C62 #28188C #8C1842
square
#7C8C18 #188C62 #28188C #8C1842
split-complementary
#7C8C18 #18428C #62188C
monochromatic
#1F2406 #4E580F #7C8C18 #AAC021 #C8DE40

Accessibility & contrast

On white

3.74
#7C8C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#7C8C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8C18
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8C18#FFFFFF#000000##000000
##7C8C181.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c8c18;
/* rgb */ color: rgb(124, 140, 24);
/* oklch */ color: oklch(60.7% 0.133 117.8);
Tailwind
colors: {
  custom: {
    50: '#a5ad61',
    500: '#7c8c18',
    950: '#000000',
  },
}
SCSS
$custom: #7c8c18;
$custom-light: #a5ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8c18",
  "rgb": {
    "r": 124,
    "g": 140,
    "b": 24
  },
  "hsl": {
    "h": 68.276,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60667,
    "c": 0.13306,
    "h": 117.8
  },
  "luminance": 0.23107
}

Semantic roles & 50–950 ramp

primary
#7C8C18
secondary
#5241BF
accent
#3AED53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7C8C18

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

Preview Lab → · Contrast checker → · Palette generator →

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