#7F791C#7F791C

#7F791C is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.110 H 105.6°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F791C
RGBrgb(127, 121, 28)
HSLhsl(56, 64%, 30%)
HSVhsv(56, 78%, 50%)
CMYKcmyk(0%, 4.7%, 78%, 50.2%)
CIE-LABlab(49.82, -8.80, 48.17)
CIE-LCHlch(49.82, 48.97, 100.35°)
OKLaboklab(56.44% -0.0295 0.1056)
OKLCHoklch(56.44% 0.11 105.6)
XYZxyz(15.8000, 18.2712, 3.7928)
Luminance0.1827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F791C #1C227F
analogous
#7F481C #7F791C #537F1C
triadic
#7F791C #1C7F79 #791C7F
tetradic
#7F791C #1C7F48 #1C227F #7F1C53
square
#7F791C #1C7F48 #1C227F #7F1C53
split-complementary
#7F791C #1C537F #481C7F
monochromatic
#1B1906 #4D4911 #7F791C #B1A927 #D5CC40

Accessibility & contrast

On white

4.51
#7F791C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F791C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F791C
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F791C#FFFFFF#000000##000000
##7F791C1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847407
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#897067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f791c;
/* rgb */ color: rgb(127, 121, 28);
/* oklch */ color: oklch(56.4% 0.110 105.6);
Tailwind
colors: {
  custom: {
    50: '#a79f60',
    500: '#7f791c',
    950: '#000000',
  },
}
SCSS
$custom: #7f791c;
$custom-light: #a79f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f791c",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 56.364,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56443,
    "c": 0.10959,
    "h": 105.6
  },
  "luminance": 0.18271
}

Semantic roles & 50–950 ramp

primary
#7F791C
secondary
#444BB3
accent
#4BE741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F791C

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

Preview Lab → · Contrast checker → · Palette generator →

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