#7C781B#7C781B

#7C781B is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.110 H 106.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7C781B
RGBrgb(124, 120, 27)
HSLhsl(58, 64%, 30%)
HSVhsv(58, 78%, 49%)
CMYKcmyk(0%, 3.2%, 78.2%, 51.4%)
CIE-LABlab(49.25, -9.69, 47.90)
CIE-LCHlch(49.25, 48.87, 101.44°)
OKLaboklab(55.92% -0.0319 0.1049)
OKLCHoklch(55.92% 0.11 106.9)
XYZxyz(15.2271, 17.7977, 3.6699)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C781B #1B1F7C
analogous
#7C481B #7C781B #507C1B
triadic
#7C781B #1B7C78 #781B7C
tetradic
#7C781B #1B7C48 #1B1F7C #7C1B50
square
#7C781B #1B7C48 #1B1F7C #7C1B50
split-complementary
#7C781B #1B507C #481B7C
monochromatic
#191805 #4A4710 #7C781B #AEA926 #D5CE3D

Accessibility & contrast

On white

4.61
#7C781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7C781B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C781B
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C781B#FFFFFF#000000##FFFFFF
##7C781B1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837306
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#867066
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c781b;
/* rgb */ color: rgb(124, 120, 27);
/* oklch */ color: oklch(55.9% 0.110 106.9);
Tailwind
colors: {
  custom: {
    50: '#a59e60',
    500: '#7c781b',
    950: '#000000',
  },
}
SCSS
$custom: #7c781b;
$custom-light: #a59e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7c781b",
  "rgb": {
    "r": 124,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 57.526,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.10963,
    "h": 106.9
  },
  "luminance": 0.17797
}

Semantic roles & 50–950 ramp

primary
#7C781B
secondary
#4347B0
accent
#47E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7C781B

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

Preview Lab → · Contrast checker → · Palette generator →

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