#787E34#787E34

#787E34 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.098 H 113.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#787E34
RGBrgb(120, 126, 52)
HSLhsl(65, 42%, 35%)
HSVhsv(65, 59%, 49%)
CMYKcmyk(4.8%, 0%, 58.7%, 50.6%)
CIE-LABlab(50.88, -13.19, 38.72)
CIE-LCHlch(50.88, 40.91, 108.81°)
OKLaboklab(57.2% -0.0387 0.0898)
OKLCHoklch(57.2% 0.098 113.3)
XYZxyz(15.8268, 19.1630, 6.1132)
Luminance0.1916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E34 #3A347E
analogous
#7E5F34 #787E34 #537E34
triadic
#787E34 #34787E #7E3478
tetradic
#787E34 #347E5F #3A347E #7E3453
square
#787E34 #347E5F #3A347E #7E3453
split-complementary
#787E34 #34537E #5F347E
monochromatic
#252710 #4F5322 #787E34 #A1A946 #BBC26B

Accessibility & contrast

On white

4.35
#787E34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#787E34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E34
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E34#FFFFFF#000000##000000
##787E341.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87782C
Deuteranopia (green-blind)
#877A38
Tritanopia (blue-blind)
#7F776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e34;
/* rgb */ color: rgb(120, 126, 52);
/* oklch */ color: oklch(57.2% 0.098 113.3);
Tailwind
colors: {
  custom: {
    50: '#a1a36e',
    500: '#787e34',
    950: '#000000',
  },
}
SCSS
$custom: #787e34;
$custom-light: #a1a36e;
$custom-dark: #000000;
JSON
{
  "hex": "#787e34",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 52
  },
  "hsl": {
    "h": 64.865,
    "s": 41.573,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57197,
    "c": 0.0978,
    "h": 113.3
  },
  "luminance": 0.19163
}

Semantic roles & 50–950 ramp

primary
#787E34
secondary
#6A64AA
accent
#56D160
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E34

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

Preview Lab → · Contrast checker → · Palette generator →

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