#7C7E18#7C7E18

#7C7E18 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.117 H 110.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7C7E18
RGBrgb(124, 126, 24)
HSLhsl(61, 68%, 29%)
HSVhsv(61, 81%, 49%)
CMYKcmyk(1.6%, 0%, 81%, 50.6%)
CIE-LABlab(51.01, -13.09, 50.49)
CIE-LCHlch(51.01, 52.16, 104.54°)
OKLaboklab(57.32% -0.0416 0.1098)
OKLCHoklch(57.32% 0.117 110.8)
XYZxyz(15.9385, 19.2732, 3.7445)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7E18 #1A187E
analogous
#7E4D18 #7C7E18 #497E18
triadic
#7C7E18 #187C7E #7E187C
tetradic
#7C7E18 #187E4D #1A187E #7E1849
square
#7C7E18 #187E4D #1A187E #7E1849
split-complementary
#7C7E18 #18497E #4D187E
monochromatic
#191A05 #494B0E #7C7E18 #AFB122 #D6D937

Accessibility & contrast

On white

4.33
#7C7E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7C7E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7E18
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7E18#FFFFFF#000000##000000
##7C7E181.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897B21
Tritanopia (blue-blind)
#85766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7e18;
/* rgb */ color: rgb(124, 126, 24);
/* oklch */ color: oklch(57.3% 0.117 110.8);
Tailwind
colors: {
  custom: {
    50: '#a5a35f',
    500: '#7c7e18',
    950: '#000000',
  },
}
SCSS
$custom: #7c7e18;
$custom-light: #a5a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7e18",
  "rgb": {
    "r": 124,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 61.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57315,
    "c": 0.11746,
    "h": 110.8
  },
  "luminance": 0.19273
}

Semantic roles & 50–950 ramp

primary
#7C7E18
secondary
#423FB2
accent
#3DEB40
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7C7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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