#7C7D1E#7C7D1E

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

Color values

HEX#7C7D1E
RGBrgb(124, 125, 30)
HSLhsl(61, 61%, 30%)
HSVhsv(61, 76%, 49%)
CMYKcmyk(0.8%, 0%, 76%, 51%)
CIE-LABlab(50.74, -12.29, 48.21)
CIE-LCHlch(50.74, 49.75, 104.30°)
OKLaboklab(57.11% -0.0389 0.1062)
OKLCHoklch(57.11% 0.113 110.1)
XYZxyz(15.8807, 19.0465, 4.0678)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C7D1E #1F1E7D
analogous
#7D4F1E #7C7D1E #4C7D1E
triadic
#7C7D1E #1E7C7D #7D1E7C
tetradic
#7C7D1E #1E7D4F #1F1E7D #7D1E4C
square
#7C7D1E #1E7D4F #1F1E7D #7D1E4C
split-complementary
#7C7D1E #1E4C7D #4F1E7D
monochromatic
#1A1A06 #4B4C12 #7C7D1E #ADAE2A #D0D243

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C7D1E#FFFFFF#000000##000000
##7C7D1E1.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)
#87770A
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#85756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7c7d1e;
/* rgb */ color: rgb(124, 125, 30);
/* oklch */ color: oklch(57.1% 0.113 110.1);
Tailwind
colors: {
  custom: {
    50: '#a5a262',
    500: '#7c7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #7c7d1e;
$custom-light: #a5a262;
$custom-dark: #000000;
JSON
{
  "hex": "#7c7d1e",
  "rgb": {
    "r": 124,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 60.632,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57114,
    "c": 0.11306,
    "h": 110.1
  },
  "luminance": 0.19046
}

Semantic roles & 50–950 ramp

primary
#7C7D1E
secondary
#4846B0
accent
#43E445
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7C7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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