#7C791F#7C791F

#7C791F is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.108 H 107.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7C791F
RGBrgb(124, 121, 31)
HSLhsl(58, 60%, 30%)
HSVhsv(58, 75%, 49%)
CMYKcmyk(0%, 2.4%, 75%, 51.4%)
CIE-LABlab(49.57, -10.05, 46.72)
CIE-LCHlch(49.57, 47.79, 102.14°)
OKLaboklab(56.18% -0.0325 0.1032)
OKLCHoklch(56.18% 0.108 107.5)
XYZxyz(15.3975, 18.0593, 3.9708)
Luminance0.1806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C791F #1F227C
analogous
#7C4B1F #7C791F #507C1F
triadic
#7C791F #1F7C79 #791F7C
tetradic
#7C791F #1F7C4B #1F227C #7C1F50
square
#7C791F #1F7C4B #1F227C #7C1F50
split-complementary
#7C791F #1F507C #4B1F7C
monochromatic
#1A1907 #4B4913 #7C791F #ADA92B #D0CC45

Accessibility & contrast

On white

4.55
#7C791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7C791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C791F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C791F#FFFFFF#000000##000000
##7C791F1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#857168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7c791f;
/* rgb */ color: rgb(124, 121, 31);
/* oklch */ color: oklch(56.2% 0.108 107.5);
Tailwind
colors: {
  custom: {
    50: '#a59f62',
    500: '#7c791f',
    950: '#000000',
  },
}
SCSS
$custom: #7c791f;
$custom-light: #a59f62;
$custom-dark: #000000;
JSON
{
  "hex": "#7c791f",
  "rgb": {
    "r": 124,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 58.065,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56179,
    "c": 0.1082,
    "h": 107.5
  },
  "luminance": 0.18059
}

Semantic roles & 50–950 ramp

primary
#7C791F
secondary
#484BAF
accent
#4AE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7C791F

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

Preview Lab → · Contrast checker → · Palette generator →

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