#7D781A#7D781A

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

Color values

HEX#7D781A
RGBrgb(125, 120, 26)
HSLhsl(57, 66%, 30%)
HSVhsv(57, 79%, 49%)
CMYKcmyk(0%, 4%, 79.2%, 51%)
CIE-LABlab(49.34, -9.27, 48.36)
CIE-LCHlch(49.34, 49.24, 100.85°)
OKLaboklab(56.01% -0.0309 0.1056)
OKLCHoklch(56.01% 0.11 106.3)
XYZxyz(15.3610, 17.8681, 3.6168)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D781A #1A1F7D
analogous
#7D471A #7D781A #507D1A
triadic
#7D781A #1A7D78 #781A7D
tetradic
#7D781A #1A7D47 #1A1F7D #7D1A50
square
#7D781A #1A7D47 #1A1F7D #7D1A50
split-complementary
#7D781A #1A507D #471A7D
monochromatic
#191805 #4A470F #7D781A #B0A925 #D6CE3B

Accessibility & contrast

On white

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

On black

4.57
#7D781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7D781A#FFFFFF#000000##FFFFFF
##7D781A1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837303
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#876F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d781a;
/* rgb */ color: rgb(125, 120, 26);
/* oklch */ color: oklch(56.0% 0.110 106.3);
Tailwind
colors: {
  custom: {
    50: '#a69e5f',
    500: '#7d781a',
    950: '#000000',
  },
}
SCSS
$custom: #7d781a;
$custom-light: #a69e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d781a",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 56.97,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56006,
    "c": 0.11005,
    "h": 106.3
  },
  "luminance": 0.17867
}

Semantic roles & 50–950 ramp

primary
#7D781A
secondary
#4247B1
accent
#48E93F
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D781A

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

Preview Lab → · Contrast checker → · Palette generator →

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