#7C8418#7C8418

#7C8418 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.7% C 0.124 H 114.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7C8418
RGBrgb(124, 132, 24)
HSLhsl(64, 69%, 31%)
HSVhsv(64, 82%, 52%)
CMYKcmyk(6.1%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.79, -16.30, 52.07)
CIE-LCHlch(52.79, 54.56, 107.38°)
OKLaboklab(58.74% -0.0505 0.1132)
OKLCHoklch(58.74% 0.124 114.1)
XYZxyz(16.7288, 20.8539, 4.0079)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C8418 #201884
analogous
#845618 #7C8418 #468418
triadic
#7C8418 #187C84 #84187C
tetradic
#7C8418 #188456 #201884 #841846
square
#7C8418 #188456 #201884 #841846
split-complementary
#7C8418 #184684 #561884
monochromatic
#1B1C05 #4B500F #7C8418 #ADB821 #CFDB3B

Accessibility & contrast

On white

4.06
#7C8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#7C8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C8418
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C8418#FFFFFF#000000##000000
##7C84181.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#857C70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7c8418;
/* rgb */ color: rgb(124, 132, 24);
/* oklch */ color: oklch(58.7% 0.124 114.1);
Tailwind
colors: {
  custom: {
    50: '#a5a760',
    500: '#7c8418',
    950: '#000000',
  },
}
SCSS
$custom: #7c8418;
$custom-light: #a5a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7c8418",
  "rgb": {
    "r": 124,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 64.444,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58744,
    "c": 0.12398,
    "h": 114.1
  },
  "luminance": 0.20854
}

Semantic roles & 50–950 ramp

primary
#7C8418
secondary
#4940B8
accent
#3CEC49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C8418

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

Preview Lab → · Contrast checker → · Palette generator →

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