#7A781B#7A781B

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

Color values

HEX#7A781B
RGBrgb(122, 120, 27)
HSLhsl(59, 64%, 29%)
HSVhsv(59, 78%, 48%)
CMYKcmyk(0%, 1.6%, 77.9%, 52.2%)
CIE-LABlab(49.07, -10.62, 47.66)
CIE-LCHlch(49.07, 48.83, 102.57°)
OKLaboklab(55.73% -0.0344 0.1045)
OKLCHoklch(55.73% 0.11 108.2)
XYZxyz(14.9409, 17.6501, 3.6565)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A781B #1B1D7A
analogous
#7A491B #7A781B #4D7A1B
triadic
#7A781B #1B7A78 #781B7A
tetradic
#7A781B #1B7A49 #1B1D7A #7A1B4D
square
#7A781B #1B7A49 #1B1D7A #7A1B4D
split-complementary
#7A781B #1B4D7A #491B7A
monochromatic
#191906 #484710 #7A781B #ACA926 #D4D13C

Accessibility & contrast

On white

4.64
#7A781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A781B
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A781B#FFFFFF#000000##FFFFFF
##7A781B1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827306
Deuteranopia (green-blind)
#847622
Tritanopia (blue-blind)
#837066
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a781b;
/* rgb */ color: rgb(122, 120, 27);
/* oklch */ color: oklch(55.7% 0.110 108.2);
Tailwind
colors: {
  custom: {
    50: '#a49e60',
    500: '#7a781b',
    950: '#000000',
  },
}
SCSS
$custom: #7a781b;
$custom-light: #a49e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a781b",
  "rgb": {
    "r": 122,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 58.737,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5573,
    "c": 0.11,
    "h": 108.2
  },
  "luminance": 0.1765
}

Semantic roles & 50–950 ramp

primary
#7A781B
secondary
#4345AE
accent
#45E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A781B

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

Preview Lab → · Contrast checker → · Palette generator →

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