#7C7918#7C7918

#7C7918 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.112 H 107.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7C7918
RGBrgb(124, 121, 24)
HSLhsl(58, 68%, 29%)
HSVhsv(58, 81%, 49%)
CMYKcmyk(0%, 2.4%, 80.6%, 51.4%)
CIE-LABlab(49.53, -10.37, 49.17)
CIE-LCHlch(49.53, 50.25, 101.91°)
OKLaboklab(56.13% -0.0341 0.107)
OKLCHoklch(56.13% 0.112 107.7)
XYZxyz(15.3150, 18.0263, 3.5367)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7918 #181B7C
analogous
#7C4718 #7C7918 #4D7C18
triadic
#7C7918 #187C79 #79187C
tetradic
#7C7918 #187C47 #181B7C #7C184D
square
#7C7918 #187C47 #181B7C #7C184D
split-complementary
#7C7918 #184D7C #47187C
monochromatic
#1A1905 #49470E #7C7918 #AFAB22 #D8D336

Accessibility & contrast

On white

4.56
#7C7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7C7918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7918
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7918#FFFFFF#000000##000000
##7C79181.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#867720
Tritanopia (blue-blind)
#867067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7c7918;
/* rgb */ color: rgb(124, 121, 24);
/* oklch */ color: oklch(56.1% 0.112 107.7);
Tailwind
colors: {
  custom: {
    50: '#a59f5e',
    500: '#7c7918',
    950: '#000000',
  },
}
SCSS
$custom: #7c7918;
$custom-light: #a59f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7918",
  "rgb": {
    "r": 124,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 58.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.56134,
    "c": 0.11229,
    "h": 107.7
  },
  "luminance": 0.18026
}

Semantic roles & 50–950 ramp

primary
#7C7918
secondary
#3F43B1
accent
#43EA3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C7918

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

Preview Lab → · Contrast checker → · Palette generator →

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