#7C8718#7C8718

#7C8718 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.5% C 0.127 H 115.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7C8718
RGBrgb(124, 135, 24)
HSLhsl(66, 70%, 31%)
HSVhsv(66, 82%, 53%)
CMYKcmyk(8.1%, 0%, 82.2%, 47.1%)
CIE-LABlab(53.69, -17.87, 52.86)
CIE-LCHlch(53.69, 55.80, 108.68°)
OKLaboklab(59.46% -0.0549 0.1149)
OKLCHoklch(59.46% 0.127 115.5)
XYZxyz(17.1415, 21.6793, 4.1455)
Luminance0.2168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8718 #231887
analogous
#875A18 #7C8718 #448718
triadic
#7C8718 #187C87 #87187C
tetradic
#7C8718 #18875A #231887 #871844
square
#7C8718 #18875A #231887 #871844
split-complementary
#7C8718 #184487 #5A1887
monochromatic
#1D1F06 #4C530F #7C8718 #ACBB21 #CDDC3D

Accessibility & contrast

On white

3.94
#7C8718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7C8718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8718
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8718#FFFFFF#000000##000000
##7C87181.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918000
Deuteranopia (green-blind)
#908123
Tritanopia (blue-blind)
#857F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7c8718;
/* rgb */ color: rgb(124, 135, 24);
/* oklch */ color: oklch(59.5% 0.127 115.5);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7c8718',
    950: '#000000',
  },
}
SCSS
$custom: #7c8718;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8718",
  "rgb": {
    "r": 124,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 65.946,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59463,
    "c": 0.12735,
    "h": 115.5
  },
  "luminance": 0.21679
}

Semantic roles & 50–950 ramp

primary
#7C8718
secondary
#4C40BB
accent
#3BED4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7C8718

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

Preview Lab → · Contrast checker → · Palette generator →

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