#7C771C#7C771C

#7C771C is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.7% C 0.108 H 106.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7C771C
RGBrgb(124, 119, 28)
HSLhsl(57, 63%, 30%)
HSVhsv(57, 77%, 49%)
CMYKcmyk(0%, 4%, 77.4%, 51.4%)
CIE-LABlab(48.96, -9.09, 47.27)
CIE-LCHlch(48.96, 48.14, 100.89°)
OKLaboklab(55.69% -0.0301 0.1038)
OKLCHoklch(55.69% 0.108 106.2)
XYZxyz(15.1192, 17.5631, 3.6920)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C771C #1C217C
analogous
#7C471C #7C771C #517C1C
triadic
#7C771C #1C7C77 #771C7C
tetradic
#7C771C #1C7C47 #1C217C #7C1C51
square
#7C771C #1C7C47 #1C217C #7C1C51
split-complementary
#7C771C #1C517C #471C7C
monochromatic
#191806 #4A4711 #7C771C #AEA727 #D4CC3F

Accessibility & contrast

On white

4.65
#7C771C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7C771C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C771C
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C771C#FFFFFF#000000##FFFFFF
##7C771C1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827208
Deuteranopia (green-blind)
#847623
Tritanopia (blue-blind)
#866F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c771c;
/* rgb */ color: rgb(124, 119, 28);
/* oklch */ color: oklch(55.7% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a59e60',
    500: '#7c771c',
    950: '#000000',
  },
}
SCSS
$custom: #7c771c;
$custom-light: #a59e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c771c",
  "rgb": {
    "r": 124,
    "g": 119,
    "b": 28
  },
  "hsl": {
    "h": 56.875,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5569,
    "c": 0.10805,
    "h": 106.2
  },
  "luminance": 0.17563
}

Semantic roles & 50–950 ramp

primary
#7C771C
secondary
#444AB0
accent
#4AE642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C771C

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

Preview Lab → · Contrast checker → · Palette generator →

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