#7D781C#7D781C

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

Color values

HEX#7D781C
RGBrgb(125, 120, 28)
HSLhsl(57, 63%, 30%)
HSVhsv(57, 78%, 49%)
CMYKcmyk(0%, 4%, 77.6%, 51%)
CIE-LABlab(49.35, -9.18, 47.66)
CIE-LCHlch(49.35, 48.54, 100.90°)
OKLaboklab(56.02% -0.0304 0.1046)
OKLCHoklch(56.02% 0.109 106.2)
XYZxyz(15.3842, 17.8773, 3.7387)
Luminance0.1788 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D781C #1C217D
analogous
#7D471C #7D781C #527D1C
triadic
#7D781C #1C7D78 #781C7D
tetradic
#7D781C #1C7D47 #1C217D #7D1C52
square
#7D781C #1C7D47 #1C217D #7D1C52
split-complementary
#7D781C #1C527D #471C7D
monochromatic
#191806 #4B4811 #7D781C #AFA827 #D4CC3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D781C#FFFFFF#000000##FFFFFF
##7D781C1.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)
#837308
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#876F67
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7d781c;
/* rgb */ color: rgb(125, 120, 28);
/* oklch */ color: oklch(56.0% 0.109 106.2);
Tailwind
colors: {
  custom: {
    50: '#a69e60',
    500: '#7d781c',
    950: '#000000',
  },
}
SCSS
$custom: #7d781c;
$custom-light: #a69e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7d781c",
  "rgb": {
    "r": 125,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 56.907,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.56019,
    "c": 0.1089,
    "h": 106.2
  },
  "luminance": 0.17877
}

Semantic roles & 50–950 ramp

primary
#7D781C
secondary
#444AB1
accent
#4AE641
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7D781C

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

Preview Lab → · Contrast checker → · Palette generator →

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