#787E2E#787E2E

#787E2E is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.103 H 113.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787E2E
RGBrgb(120, 126, 46)
HSLhsl(65, 47%, 34%)
HSVhsv(65, 63%, 49%)
CMYKcmyk(4.8%, 0%, 63.5%, 50.6%)
CIE-LABlab(50.82, -13.67, 41.51)
CIE-LCHlch(50.82, 43.71, 108.22°)
OKLaboklab(57.13% -0.0408 0.0949)
OKLCHoklch(57.13% 0.103 113.2)
XYZxyz(15.7001, 19.1123, 5.4462)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E2E #342E7E
analogous
#7E5C2E #787E2E #507E2E
triadic
#787E2E #2E787E #7E2E78
tetradic
#787E2E #2E7E5C #342E7E #7E2E50
square
#787E2E #2E7E5C #342E7E #7E2E50
split-complementary
#787E2E #2E507E #5C2E7E
monochromatic
#23240D #4D511E #787E2E #A3AB3E #BEC561

Accessibility & contrast

On white

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

On black

4.82
#787E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E2E
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E2E#FFFFFF#000000##000000
##787E2E1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877824
Deuteranopia (green-blind)
#877A33
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e2e;
/* rgb */ color: rgb(120, 126, 46);
/* oklch */ color: oklch(57.1% 0.103 113.2);
Tailwind
colors: {
  custom: {
    50: '#a1a36b',
    500: '#787e2e',
    950: '#000000',
  },
}
SCSS
$custom: #787e2e;
$custom-light: #a1a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#787e2e",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 64.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5713,
    "c": 0.10331,
    "h": 113.2
  },
  "luminance": 0.19112
}

Semantic roles & 50–950 ramp

primary
#787E2E
secondary
#625CAC
accent
#52D65C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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