#7A781C#7A781C

#7A781C is a mid, moderate yellow. Relative luminance 0.177; OKLCH L 55.7% C 0.109 H 108.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7A781C
RGBrgb(122, 120, 28)
HSLhsl(59, 63%, 29%)
HSVhsv(59, 77%, 48%)
CMYKcmyk(0%, 1.6%, 77%, 52.2%)
CIE-LABlab(49.07, -10.58, 47.31)
CIE-LCHlch(49.07, 48.48, 102.60°)
OKLaboklab(55.74% -0.0342 0.1039)
OKLCHoklch(55.74% 0.109 108.2)
XYZxyz(14.9527, 17.6548, 3.7185)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A781C #1C1E7A
analogous
#7A491C #7A781C #4D7A1C
triadic
#7A781C #1C7A78 #781C7A
tetradic
#7A781C #1C7A49 #1C1E7A #7A1C4D
square
#7A781C #1C7A49 #1C1E7A #7A1C4D
split-complementary
#7A781C #1C4D7A #491C7A
monochromatic
#191806 #484711 #7A781C #ACA927 #D3CF3E

Accessibility & contrast

On white

4.63
#7A781C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7A781C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A781C
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A781C#FFFFFF#000000##FFFFFF
##7A781C1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827308
Deuteranopia (green-blind)
#847623
Tritanopia (blue-blind)
#837067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a781c;
/* rgb */ color: rgb(122, 120, 28);
/* oklch */ color: oklch(55.7% 0.109 108.2);
Tailwind
colors: {
  custom: {
    50: '#a49e60',
    500: '#7a781c',
    950: '#000000',
  },
}
SCSS
$custom: #7a781c;
$custom-light: #a49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a781c",
  "rgb": {
    "r": 122,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 58.723,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.55736,
    "c": 0.1094,
    "h": 108.2
  },
  "luminance": 0.17654
}

Semantic roles & 50–950 ramp

primary
#7A781C
secondary
#4446AE
accent
#46E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A781C

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

Preview Lab → · Contrast checker → · Palette generator →

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