#7D781D#7D781D

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

Color values

HEX#7D781D
RGBrgb(125, 120, 29)
HSLhsl(57, 62%, 30%)
HSVhsv(57, 77%, 49%)
CMYKcmyk(0%, 4%, 76.8%, 51%)
CIE-LABlab(49.35, -9.13, 47.30)
CIE-LCHlch(49.35, 48.18, 100.93°)
OKLaboklab(56.03% -0.0302 0.104)
OKLCHoklch(56.03% 0.108 106.2)
XYZxyz(15.3963, 17.8822, 3.8028)
Luminance0.1788 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D781D #1D227D
analogous
#7D481D #7D781D #527D1D
triadic
#7D781D #1D7D78 #781D7D
tetradic
#7D781D #1D7D48 #1D227D #7D1D52
square
#7D781D #1D7D48 #1D227D #7D1D52
split-complementary
#7D781D #1D527D #481D7D
monochromatic
#1A1906 #4B4811 #7D781D #AFA829 #D3CB41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D781D#FFFFFF#000000##FFFFFF
##7D781D1.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)
#83730A
Deuteranopia (green-blind)
#857724
Tritanopia (blue-blind)
#877067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d781d;
/* rgb */ color: rgb(125, 120, 29);
/* oklch */ color: oklch(56.0% 0.108 106.2);
Tailwind
colors: {
  custom: {
    50: '#a69e61',
    500: '#7d781d',
    950: '#000000',
  },
}
SCSS
$custom: #7d781d;
$custom-light: #a69e61;
$custom-dark: #000000;
JSON
{
  "hex": "#7d781d",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 56.875,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56026,
    "c": 0.10829,
    "h": 106.2
  },
  "luminance": 0.17882
}

Semantic roles & 50–950 ramp

primary
#7D781D
secondary
#454BB1
accent
#4BE542
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D781D

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

Preview Lab → · Contrast checker → · Palette generator →

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