#7C7D1C#7C7D1C

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

Color values

HEX#7C7D1C
RGBrgb(124, 125, 28)
HSLhsl(61, 63%, 30%)
HSVhsv(61, 78%, 49%)
CMYKcmyk(0.8%, 0%, 77.6%, 51%)
CIE-LABlab(50.73, -12.38, 48.91)
CIE-LCHlch(50.73, 50.46, 104.21°)
OKLaboklab(57.1% -0.0393 0.1073)
OKLCHoklch(57.1% 0.114 110.1)
XYZxyz(15.8560, 19.0366, 3.9376)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7D1C #1D1C7D
analogous
#7D4E1C #7C7D1C #4B7D1C
triadic
#7C7D1C #1C7C7D #7D1C7C
tetradic
#7C7D1C #1C7D4E #1D1C7D #7D1C4B
square
#7C7D1C #1C7D4E #1D1C7D #7D1C4B
split-complementary
#7C7D1C #1C4B7D #4E1C7D
monochromatic
#191906 #4A4B11 #7C7D1C #AEAF27 #D3D43F

Accessibility & contrast

On white

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

On black

4.81
#7C7D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C7D1C
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C7D1C#FFFFFF#000000##000000
##7C7D1C1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#877705
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#85756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7d1c;
/* rgb */ color: rgb(124, 125, 28);
/* oklch */ color: oklch(57.1% 0.114 110.1);
Tailwind
colors: {
  custom: {
    50: '#a5a261',
    500: '#7c7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #7c7d1c;
$custom-light: #a5a261;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7d1c",
  "rgb": {
    "r": 124,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 60.619,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.57101,
    "c": 0.11424,
    "h": 110.1
  },
  "luminance": 0.19036
}

Semantic roles & 50–950 ramp

primary
#7C7D1C
secondary
#4544B1
accent
#41E643
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7C7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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