#7B781F#7B781F

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

Color values

HEX#7B781F
RGBrgb(123, 120, 31)
HSLhsl(58, 60%, 30%)
HSVhsv(58, 75%, 48%)
CMYKcmyk(0%, 2.4%, 74.8%, 51.8%)
CIE-LABlab(49.18, -9.97, 46.32)
CIE-LCHlch(49.18, 47.38, 102.14°)
OKLaboklab(55.85% -0.0322 0.1024)
OKLCHoklch(55.85% 0.107 107.5)
XYZxyz(15.1328, 17.7433, 3.9237)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B781F #1F227B
analogous
#7B4A1F #7B781F #507B1F
triadic
#7B781F #1F7B78 #781F7B
tetradic
#7B781F #1F7B4A #1F227B #7B1F50
square
#7B781F #1F7B4A #1F227B #7B1F50
split-complementary
#7B781F #1F507B #4A1F7B
monochromatic
#191906 #4A4813 #7B781F #ACA82B #D0CB44

Accessibility & contrast

On white

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

On black

4.55
#7B781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7B781F#FFFFFF#000000##FFFFFF
##7B781F1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#847626
Tritanopia (blue-blind)
#847067
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7b781f;
/* rgb */ color: rgb(123, 120, 31);
/* oklch */ color: oklch(55.9% 0.107 107.5);
Tailwind
colors: {
  custom: {
    50: '#a49e62',
    500: '#7b781f',
    950: '#000000',
  },
}
SCSS
$custom: #7b781f;
$custom-light: #a49e62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b781f",
  "rgb": {
    "r": 123,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 58.043,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5585,
    "c": 0.10734,
    "h": 107.5
  },
  "luminance": 0.17743
}

Semantic roles & 50–950 ramp

primary
#7B781F
secondary
#484BAE
accent
#4AE345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7B781F

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

Preview Lab → · Contrast checker → · Palette generator →

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