#7C7D18#7C7D18

#7C7D18 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.1% C 0.116 H 110.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7C7D18
RGBrgb(124, 125, 24)
HSLhsl(61, 68%, 29%)
HSVhsv(61, 81%, 49%)
CMYKcmyk(0.8%, 0%, 80.8%, 51%)
CIE-LABlab(50.71, -12.55, 50.22)
CIE-LCHlch(50.71, 51.77, 104.03°)
OKLaboklab(57.08% -0.0401 0.1093)
OKLCHoklch(57.08% 0.116 110.2)
XYZxyz(15.8113, 19.0187, 3.7021)
Luminance0.1902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7D18 #19187D
analogous
#7D4C18 #7C7D18 #4A7D18
triadic
#7C7D18 #187C7D #7D187C
tetradic
#7C7D18 #187D4C #19187D #7D184A
square
#7C7D18 #187D4C #19187D #7D184A
split-complementary
#7C7D18 #184A7D #4C187D
monochromatic
#191A05 #494A0E #7C7D18 #AFB022 #D7D937

Accessibility & contrast

On white

4.37
#7C7D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7C7D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7D18
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7D18#FFFFFF#000000##000000
##7C7D181.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#897A21
Tritanopia (blue-blind)
#85756A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7d18;
/* rgb */ color: rgb(124, 125, 24);
/* oklch */ color: oklch(57.1% 0.116 110.2);
Tailwind
colors: {
  custom: {
    50: '#a5a25f',
    500: '#7c7d18',
    950: '#000000',
  },
}
SCSS
$custom: #7c7d18;
$custom-light: #a5a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7d18",
  "rgb": {
    "r": 124,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 60.594,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57078,
    "c": 0.11641,
    "h": 110.2
  },
  "luminance": 0.19018
}

Semantic roles & 50–950 ramp

primary
#7C7D18
secondary
#403FB2
accent
#3DEB3F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7C7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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