#7D781F#7D781F

#7D781F is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.107 H 106.1°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7D781F
RGBrgb(125, 120, 31)
HSLhsl(57, 60%, 31%)
HSVhsv(57, 75%, 49%)
CMYKcmyk(0%, 4%, 75.2%, 51%)
CIE-LABlab(49.37, -9.04, 46.56)
CIE-LCHlch(49.37, 47.43, 100.98°)
OKLaboklab(56.04% -0.0297 0.1028)
OKLCHoklch(56.04% 0.107 106.1)
XYZxyz(15.4219, 17.8924, 3.9373)
Luminance0.1789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D781F #1F247D
analogous
#7D491F #7D781F #537D1F
triadic
#7D781F #1F7D78 #781F7D
tetradic
#7D781F #1F7D49 #1F247D #7D1F53
square
#7D781F #1F7D49 #1F247D #7D1F53
split-complementary
#7D781F #1F537D #491F7D
monochromatic
#1B1A07 #4C4913 #7D781F #AEA72B #D1CA45

Accessibility & contrast

On white

4.59
#7D781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7D781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7D781F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D781F#FFFFFF#000000##FFFFFF
##7D781F1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83730E
Deuteranopia (green-blind)
#857725
Tritanopia (blue-blind)
#877067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d781f;
/* rgb */ color: rgb(125, 120, 31);
/* oklch */ color: oklch(56.0% 0.107 106.1);
Tailwind
colors: {
  custom: {
    50: '#a69e62',
    500: '#7d781f',
    950: '#000000',
  },
}
SCSS
$custom: #7d781f;
$custom-light: #a69e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d781f",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 56.809,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56039,
    "c": 0.10703,
    "h": 106.1
  },
  "luminance": 0.17892
}

Semantic roles & 50–950 ramp

primary
#7D781F
secondary
#484DB0
accent
#4DE344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7D781F

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

Preview Lab → · Contrast checker → · Palette generator →

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