#7D791B#7D791B

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

Color values

HEX#7D791B
RGBrgb(125, 121, 27)
HSLhsl(58, 64%, 30%)
HSVhsv(58, 78%, 49%)
CMYKcmyk(0%, 3.2%, 78.4%, 51%)
CIE-LABlab(49.63, -9.78, 48.28)
CIE-LCHlch(49.63, 49.26, 101.45°)
OKLaboklab(56.25% -0.0322 0.1057)
OKLCHoklch(56.25% 0.11 106.9)
XYZxyz(15.4933, 18.1144, 3.7170)
Luminance0.1811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D791B #1B1F7D
analogous
#7D481B #7D791B #507D1B
triadic
#7D791B #1B7D79 #791B7D
tetradic
#7D791B #1B7D48 #1B1F7D #7D1B50
square
#7D791B #1B7D48 #1B1F7D #7D1B50
split-complementary
#7D791B #1B507D #481B7D
monochromatic
#191805 #4B4810 #7D791B #AFAA26 #D5CF3D

Accessibility & contrast

On white

4.54
#7D791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7D791B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D791B
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D791B#FFFFFF#000000##000000
##7D791B1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d791b;
/* rgb */ color: rgb(125, 121, 27);
/* oklch */ color: oklch(56.2% 0.110 106.9);
Tailwind
colors: {
  custom: {
    50: '#a69f60',
    500: '#7d791b',
    950: '#000000',
  },
}
SCSS
$custom: #7d791b;
$custom-light: #a69f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d791b",
  "rgb": {
    "r": 125,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 57.551,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56246,
    "c": 0.11048,
    "h": 106.9
  },
  "luminance": 0.18114
}

Semantic roles & 50–950 ramp

primary
#7D791B
secondary
#4347B1
accent
#47E740
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D791B

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

Preview Lab → · Contrast checker → · Palette generator →

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