#7B781A#7B781A

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

Color values

HEX#7B781A
RGBrgb(123, 120, 26)
HSLhsl(58, 65%, 29%)
HSVhsv(58, 79%, 48%)
CMYKcmyk(0%, 2.4%, 78.9%, 51.8%)
CIE-LABlab(49.15, -10.20, 48.12)
CIE-LCHlch(49.15, 49.19, 101.97°)
OKLaboklab(55.82% -0.0334 0.1052)
OKLCHoklch(55.82% 0.11 107.6)
XYZxyz(15.0719, 17.7190, 3.6033)
Luminance0.1772 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B781A #1A1D7B
analogous
#7B481A #7B781A #4E7B1A
triadic
#7B781A #1A7B78 #781A7B
tetradic
#7B781A #1A7B48 #1A1D7B #7B1A4E
square
#7B781A #1A7B48 #1A1D7B #7B1A4E
split-complementary
#7B781A #1A4E7B #481A7B
monochromatic
#191905 #48470F #7B781A #AEA925 #D5D13A

Accessibility & contrast

On white

4.62
#7B781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7B781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7B781A
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B781A#FFFFFF#000000##FFFFFF
##7B781A1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b781a;
/* rgb */ color: rgb(123, 120, 26);
/* oklch */ color: oklch(55.8% 0.110 107.6);
Tailwind
colors: {
  custom: {
    50: '#a49e5f',
    500: '#7b781a',
    950: '#000000',
  },
}
SCSS
$custom: #7b781a;
$custom-light: #a49e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b781a",
  "rgb": {
    "r": 123,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 58.144,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.55817,
    "c": 0.11038,
    "h": 107.6
  },
  "luminance": 0.17718
}

Semantic roles & 50–950 ramp

primary
#7B781A
secondary
#4245AF
accent
#45E840
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B781A

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

Preview Lab → · Contrast checker → · Palette generator →

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