#7C8018#7C8018

#7C8018 is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.120 H 111.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7C8018
RGBrgb(124, 128, 24)
HSLhsl(62, 68%, 30%)
HSVhsv(62, 81%, 50%)
CMYKcmyk(3.1%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.60, -14.17, 51.02)
CIE-LCHlch(51.60, 52.95, 105.52°)
OKLaboklab(57.79% -0.0446 0.111)
OKLCHoklch(57.79% 0.12 111.9)
XYZxyz(16.1968, 19.7898, 3.8306)
Luminance0.1979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8018 #1C1880
analogous
#805018 #7C8018 #488018
triadic
#7C8018 #187C80 #80187C
tetradic
#7C8018 #188050 #1C1880 #801848
square
#7C8018 #188050 #1C1880 #801848
split-complementary
#7C8018 #184880 #501880
monochromatic
#191A05 #4A4C0E #7C8018 #AEB422 #D4DA39

Accessibility & contrast

On white

4.24
#7C8018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#7C8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8018
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8018#FFFFFF#000000##000000
##7C80181.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#85786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7c8018;
/* rgb */ color: rgb(124, 128, 24);
/* oklch */ color: oklch(57.8% 0.120 111.9);
Tailwind
colors: {
  custom: {
    50: '#a5a45f',
    500: '#7c8018',
    950: '#000000',
  },
}
SCSS
$custom: #7c8018;
$custom-light: #a5a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8018",
  "rgb": {
    "r": 124,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 62.308,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5779,
    "c": 0.1196,
    "h": 111.9
  },
  "luminance": 0.19789
}

Semantic roles & 50–950 ramp

primary
#7C8018
secondary
#4440B4
accent
#3DEB43
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8018

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

Preview Lab → · Contrast checker → · Palette generator →

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