#7A781F#7A781F

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

Color values

HEX#7A781F
RGBrgb(122, 120, 31)
HSLhsl(59, 59%, 30%)
HSVhsv(59, 75%, 48%)
CMYKcmyk(0%, 1.6%, 74.6%, 52.2%)
CIE-LABlab(49.09, -10.43, 46.21)
CIE-LCHlch(49.09, 47.37, 102.72°)
OKLaboklab(55.76% -0.0335 0.1022)
OKLCHoklch(55.76% 0.108 108.1)
XYZxyz(14.9904, 17.6699, 3.9171)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A781F #1F217A
analogous
#7A4A1F #7A781F #4F7A1F
triadic
#7A781F #1F7A78 #781F7A
tetradic
#7A781F #1F7A4A #1F217A #7A1F4F
square
#7A781F #1F7A4A #1F217A #7A1F4F
split-complementary
#7A781F #1F4F7A #4A1F7A
monochromatic
#181806 #494813 #7A781F #ABA82B #CFCC44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A781F#FFFFFF#000000##FFFFFF
##7A781F1.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)
#82730F
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#837067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a781f;
/* rgb */ color: rgb(122, 120, 31);
/* oklch */ color: oklch(55.8% 0.108 108.1);
Tailwind
colors: {
  custom: {
    50: '#a39e62',
    500: '#7a781f',
    950: '#000000',
  },
}
SCSS
$custom: #7a781f;
$custom-light: #a39e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7a781f",
  "rgb": {
    "r": 122,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 58.681,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.55757,
    "c": 0.10752,
    "h": 108.1
  },
  "luminance": 0.17669
}

Semantic roles & 50–950 ramp

primary
#7A781F
secondary
#474AAD
accent
#49E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #7A781F

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

Preview Lab → · Contrast checker → · Palette generator →

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