#787E46#787E46

#787E46 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.078 H 113.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787E46
RGBrgb(120, 126, 70)
HSLhsl(66, 29%, 38%)
HSVhsv(66, 44%, 49%)
CMYKcmyk(4.8%, 0%, 44.4%, 50.6%)
CIE-LABlab(51.10, -11.37, 29.65)
CIE-LCHlch(51.10, 31.76, 110.99°)
OKLaboklab(57.45% -0.0317 0.0717)
OKLCHoklch(57.45% 0.078 113.9)
XYZxyz(16.3123, 19.3572, 8.6702)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E46 #4C467E
analogous
#7E6846 #787E46 #5C7E46
triadic
#787E46 #46787E #7E4678
tetradic
#787E46 #467E68 #4C467E #7E465C
square
#787E46 #467E68 #4C467E #7E465C
split-complementary
#787E46 #465C7E #68467E
monochromatic
#2D2F1A #535730 #787E46 #9DA55C #B5BB84

Accessibility & contrast

On white

4.31
#787E46 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#787E46 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E46
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E46#FFFFFF#000000##000000
##787E461.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857941
Deuteranopia (green-blind)
#857A49
Tritanopia (blue-blind)
#7E7871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787e46;
/* rgb */ color: rgb(120, 126, 70);
/* oklch */ color: oklch(57.4% 0.078 113.9);
Tailwind
colors: {
  custom: {
    50: '#a0a37a',
    500: '#787e46',
    950: '#000000',
  },
}
SCSS
$custom: #787e46;
$custom-light: #a0a37a;
$custom-dark: #000000;
JSON
{
  "hex": "#787e46",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 70
  },
  "hsl": {
    "h": 66.429,
    "s": 28.571,
    "l": 38.431
  },
  "oklch": {
    "l": 0.57449,
    "c": 0.07837,
    "h": 113.9
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

primary
#787E46
secondary
#7E7AA6
accent
#63C56D
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F09
muted
#7E7F7B

Preview Lab

Preview with #787E46

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

Preview Lab → · Contrast checker → · Palette generator →

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