#7C771B#7C771B

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

Color values

HEX#7C771B
RGBrgb(124, 119, 27)
HSLhsl(57, 64%, 30%)
HSVhsv(57, 78%, 49%)
CMYKcmyk(0%, 4%, 78.2%, 51.4%)
CIE-LABlab(48.96, -9.14, 47.62)
CIE-LCHlch(48.96, 48.49, 100.86°)
OKLaboklab(55.68% -0.0303 0.1043)
OKLCHoklch(55.68% 0.109 106.2)
XYZxyz(15.1075, 17.5584, 3.6300)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C771B #1B207C
analogous
#7C471B #7C771B #517C1B
triadic
#7C771B #1B7C77 #771B7C
tetradic
#7C771B #1B7C47 #1B207C #7C1B51
square
#7C771B #1B7C47 #1B207C #7C1B51
split-complementary
#7C771B #1B517C #471B7C
monochromatic
#191805 #4A4710 #7C771B #AEA726 #D5CD3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C771B#FFFFFF#000000##FFFFFF
##7C771B1.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)
#827206
Deuteranopia (green-blind)
#847622
Tritanopia (blue-blind)
#866F66
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c771b;
/* rgb */ color: rgb(124, 119, 27);
/* oklch */ color: oklch(55.7% 0.109 106.2);
Tailwind
colors: {
  custom: {
    50: '#a59d60',
    500: '#7c771b',
    950: '#000000',
  },
}
SCSS
$custom: #7c771b;
$custom-light: #a59d60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c771b",
  "rgb": {
    "r": 124,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 56.907,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55684,
    "c": 0.10865,
    "h": 106.2
  },
  "luminance": 0.17558
}

Semantic roles & 50–950 ramp

primary
#7C771B
secondary
#4348B0
accent
#49E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C771B

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

Preview Lab → · Contrast checker → · Palette generator →

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