#7D781B#7D781B

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

Color values

HEX#7D781B
RGBrgb(125, 120, 27)
HSLhsl(57, 64%, 30%)
HSVhsv(57, 78%, 49%)
CMYKcmyk(0%, 4%, 78.4%, 51%)
CIE-LABlab(49.34, -9.22, 48.01)
CIE-LCHlch(49.34, 48.89, 100.87°)
OKLaboklab(56.01% -0.0306 0.1051)
OKLCHoklch(56.01% 0.109 106.3)
XYZxyz(15.3724, 17.8726, 3.6767)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D781B #1B207D
analogous
#7D471B #7D781B #517D1B
triadic
#7D781B #1B7D78 #781B7D
tetradic
#7D781B #1B7D47 #1B207D #7D1B51
square
#7D781B #1B7D47 #1B207D #7D1B51
split-complementary
#7D781B #1B517D #471B7D
monochromatic
#191805 #4B4810 #7D781B #AFA826 #D5CD3D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D781B#FFFFFF#000000##FFFFFF
##7D781B1.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)
#837306
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#876F66
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d781b;
/* rgb */ color: rgb(125, 120, 27);
/* oklch */ color: oklch(56.0% 0.109 106.3);
Tailwind
colors: {
  custom: {
    50: '#a69e60',
    500: '#7d781b',
    950: '#000000',
  },
}
SCSS
$custom: #7d781b;
$custom-light: #a69e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d781b",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 56.939,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.56013,
    "c": 0.10948,
    "h": 106.3
  },
  "luminance": 0.17872
}

Semantic roles & 50–950 ramp

primary
#7D781B
secondary
#4348B1
accent
#49E740
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D781B

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

Preview Lab → · Contrast checker → · Palette generator →

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