#787C26#787C26

#787C26 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.107 H 112.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#787C26
RGBrgb(120, 124, 38)
HSLhsl(63, 53%, 32%)
HSVhsv(63, 69%, 49%)
CMYKcmyk(3.2%, 0%, 69.4%, 51.4%)
CIE-LABlab(50.16, -13.14, 44.37)
CIE-LCHlch(50.16, 46.27, 106.50°)
OKLaboklab(56.58% -0.0402 0.0997)
OKLCHoklch(56.58% 0.107 112)
XYZxyz(15.3037, 18.5487, 4.6074)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C26 #2A267C
analogous
#7C5526 #787C26 #4D7C26
triadic
#787C26 #26787C #7C2678
tetradic
#787C26 #267C55 #2A267C #7C264D
square
#787C26 #267C55 #2A267C #7C264D
split-complementary
#787C26 #264D7C #55267C
monochromatic
#1D1E09 #4B4D18 #787C26 #A5AB34 #C5CA52

Accessibility & contrast

On white

4.46
#787C26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#787C26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C26
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C26#FFFFFF#000000##000000
##787C261.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867619
Deuteranopia (green-blind)
#86782C
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c26;
/* rgb */ color: rgb(120, 124, 38);
/* oklch */ color: oklch(56.6% 0.107 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a166',
    500: '#787c26',
    950: '#000000',
  },
}
SCSS
$custom: #787c26;
$custom-light: #a2a166;
$custom-dark: #000000;
JSON
{
  "hex": "#787c26",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 38
  },
  "hsl": {
    "h": 62.791,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56578,
    "c": 0.10745,
    "h": 112
  },
  "luminance": 0.18548
}

Semantic roles & 50–950 ramp

primary
#787C26
secondary
#5450AE
accent
#4BDC52
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C26

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

Preview Lab → · Contrast checker → · Palette generator →

#787C26 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva